Index: src/gpu/effects/GrConvolutionEffect.h |
diff --git a/src/gpu/effects/GrConvolutionEffect.h b/src/gpu/effects/GrConvolutionEffect.h |
index af580217d9fe6a7a8d4b7dc8322cbfec1c647d2a..c353542d030a05f1c48635739841b4c2abcbba6c 100644 |
--- a/src/gpu/effects/GrConvolutionEffect.h |
+++ b/src/gpu/effects/GrConvolutionEffect.h |
@@ -21,23 +21,25 @@ class GrConvolutionEffect : public Gr1DKernelEffect { |
public: |
/// Convolve with an arbitrary user-specified kernel |
- static GrFragmentProcessor* Create(GrTexture* tex, |
- Direction dir, |
- int halfWidth, |
- const float* kernel, |
- bool useBounds, |
- float bounds[2]) { |
- return new GrConvolutionEffect(tex, dir, halfWidth, kernel, useBounds, bounds); |
+ static sk_sp<GrFragmentProcessor> Make(GrTexture* tex, |
+ Direction dir, |
+ int halfWidth, |
+ const float* kernel, |
+ bool useBounds, |
+ float bounds[2]) { |
+ return sk_sp<GrFragmentProcessor>( |
+ new GrConvolutionEffect(tex, dir, halfWidth, kernel, useBounds, bounds)); |
} |
/// Convolve with a Gaussian kernel |
- static GrFragmentProcessor* CreateGaussian(GrTexture* tex, |
- Direction dir, |
- int halfWidth, |
- float gaussianSigma, |
- bool useBounds, |
- float bounds[2]) { |
- return new GrConvolutionEffect(tex, dir, halfWidth, gaussianSigma, useBounds, bounds); |
+ static sk_sp<GrFragmentProcessor> MakeGaussian(GrTexture* tex, |
+ Direction dir, |
+ int halfWidth, |
+ float gaussianSigma, |
+ bool useBounds, |
+ float bounds[2]) { |
+ return sk_sp<GrFragmentProcessor>( |
+ new GrConvolutionEffect(tex, dir, halfWidth, gaussianSigma, useBounds, bounds)); |
} |
virtual ~GrConvolutionEffect(); |