| Index: src/gpu/effects/GrConvolutionEffect.h
|
| diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h
|
| index 56a54b4a6a8d7599e52ab8828c01f3d0a24d8b03..77c2d347c686d48c0fc8c3c4ad5dddc7c77b4793 100644
|
| --- a/src/gpu/effects/GrConvolutionEffect.h
|
| +++ b/src/gpu/effects/GrConvolutionEffect.h
|
| @@ -28,13 +28,12 @@ public:
|
| const float* kernel,
|
| bool useBounds,
|
| float bounds[2]) {
|
| - AutoEffectUnref effect(SkNEW_ARGS(GrConvolutionEffect, (tex,
|
| - dir,
|
| - halfWidth,
|
| - kernel,
|
| - useBounds,
|
| - bounds)));
|
| - return CreateEffectRef(effect);
|
| + return SkNEW_ARGS(GrConvolutionEffect, (tex,
|
| + dir,
|
| + halfWidth,
|
| + kernel,
|
| + useBounds,
|
| + bounds));
|
| }
|
|
|
| /// Convolve with a Gaussian kernel
|
| @@ -44,13 +43,12 @@ public:
|
| float gaussianSigma,
|
| bool useBounds,
|
| float bounds[2]) {
|
| - AutoEffectUnref effect(SkNEW_ARGS(GrConvolutionEffect, (tex,
|
| - dir,
|
| - halfWidth,
|
| - gaussianSigma,
|
| - useBounds,
|
| - bounds)));
|
| - return CreateEffectRef(effect);
|
| + return SkNEW_ARGS(GrConvolutionEffect, (tex,
|
| + dir,
|
| + halfWidth,
|
| + gaussianSigma,
|
| + useBounds,
|
| + bounds));
|
| }
|
|
|
| virtual ~GrConvolutionEffect();
|
|
|