Index: src/gpu/effects/GrMatrixConvolutionEffect.h |
diff --git a/src/gpu/effects/GrMatrixConvolutionEffect.h b/src/gpu/effects/GrMatrixConvolutionEffect.h |
index 066da6568140fd02049ca0fc6b32df55905159e5..b8df437681252ba42f8324f8c693fb595667601f 100644 |
--- a/src/gpu/effects/GrMatrixConvolutionEffect.h |
+++ b/src/gpu/effects/GrMatrixConvolutionEffect.h |
@@ -18,29 +18,30 @@ |
class GrMatrixConvolutionEffect : public GrSingleTextureEffect { |
public: |
- static GrFragmentProcessor* Create(GrTexture* texture, |
- const SkIRect& bounds, |
- const SkISize& kernelSize, |
- const SkScalar* kernel, |
- SkScalar gain, |
- SkScalar bias, |
- const SkIPoint& kernelOffset, |
- GrTextureDomain::Mode tileMode, |
- bool convolveAlpha) { |
- return new GrMatrixConvolutionEffect(texture, bounds, kernelSize, kernel, gain, bias, |
- kernelOffset, tileMode, convolveAlpha); |
+ static sk_sp<GrFragmentProcessor> Make(GrTexture* texture, |
+ const SkIRect& bounds, |
+ const SkISize& kernelSize, |
+ const SkScalar* kernel, |
+ SkScalar gain, |
+ SkScalar bias, |
+ const SkIPoint& kernelOffset, |
+ GrTextureDomain::Mode tileMode, |
+ bool convolveAlpha) { |
+ return sk_sp<GrFragmentProcessor>( |
+ new GrMatrixConvolutionEffect(texture, bounds, kernelSize, kernel, gain, bias, |
+ kernelOffset, tileMode, convolveAlpha)); |
} |
- static GrFragmentProcessor* CreateGaussian(GrTexture* texture, |
- const SkIRect& bounds, |
- const SkISize& kernelSize, |
- SkScalar gain, |
- SkScalar bias, |
- const SkIPoint& kernelOffset, |
- GrTextureDomain::Mode tileMode, |
- bool convolveAlpha, |
- SkScalar sigmaX, |
- SkScalar sigmaY); |
+ static sk_sp<GrFragmentProcessor> MakeGaussian(GrTexture* texture, |
+ const SkIRect& bounds, |
+ const SkISize& kernelSize, |
+ SkScalar gain, |
+ SkScalar bias, |
+ const SkIPoint& kernelOffset, |
+ GrTextureDomain::Mode tileMode, |
+ bool convolveAlpha, |
+ SkScalar sigmaX, |
+ SkScalar sigmaY); |
const SkIRect& bounds() const { return fBounds; } |
const SkISize& kernelSize() const { return fKernelSize; } |