aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects/SkGpuBlurUtils.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-07-08 09:56:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-08 09:56:11 -0700
commit83d081ae1d731b5039e99823620f5e287542ee39 (patch)
tree5deeda75fa4584b904a129dc4c1981f002b4cc14 /src/effects/SkGpuBlurUtils.cpp
parentca95c19d27b505a1ac8f57b53cb49c198bc29267 (diff)
Goodbye GrEffectRef.
Also, reworked some var names and comments around SkShader::asNewEffect. R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/374923002
Diffstat (limited to 'src/effects/SkGpuBlurUtils.cpp')
-rw-r--r--src/effects/SkGpuBlurUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/effects/SkGpuBlurUtils.cpp b/src/effects/SkGpuBlurUtils.cpp
index 9da08e6f71..5888108755 100644
--- a/src/effects/SkGpuBlurUtils.cpp
+++ b/src/effects/SkGpuBlurUtils.cpp
@@ -54,7 +54,7 @@ static void convolve_gaussian_pass(GrContext* context,
float bounds[2]) {
GrPaint paint;
paint.reset();
- SkAutoTUnref<GrEffectRef> conv(GrConvolutionEffect::CreateGaussian(
+ SkAutoTUnref<GrEffect> conv(GrConvolutionEffect::CreateGaussian(
texture, direction, radius, sigma, useBounds, bounds));
paint.reset();
paint.addColorEffect(conv);
@@ -174,7 +174,7 @@ GrTexture* GaussianBlur(GrContext* context,
matrix.mapRect(&domain, rect);
domain.inset(i < scaleFactorX ? SK_ScalarHalf / srcTexture->width() : 0.0f,
i < scaleFactorY ? SK_ScalarHalf / srcTexture->height() : 0.0f);
- SkAutoTUnref<GrEffectRef> effect(GrTextureDomainEffect::Create(
+ SkAutoTUnref<GrEffect> effect(GrTextureDomainEffect::Create(
srcTexture,
matrix,
domain,