Index: src/effects/GrCircleBlurFragmentProcessor.h |
diff --git a/src/effects/GrCircleBlurFragmentProcessor.h b/src/effects/GrCircleBlurFragmentProcessor.h |
index ca12db7f60db1295768a2afa7fc8f084687ae432..6dc599b7bb814f62bf337ea0c0c75817894eeba4 100644 |
--- a/src/effects/GrCircleBlurFragmentProcessor.h |
+++ b/src/effects/GrCircleBlurFragmentProcessor.h |
@@ -34,8 +34,8 @@ public: |
return str; |
} |
- static const GrFragmentProcessor* Create(GrTextureProvider*textureProvider, |
- const SkRect& circle, float sigma) { |
+ static sk_sp<GrFragmentProcessor> Make(GrTextureProvider*textureProvider, |
+ const SkRect& circle, float sigma) { |
float offset; |
SkAutoTUnref<GrTexture> blurProfile(CreateCircleBlurProfileTexture(textureProvider, |
@@ -45,7 +45,8 @@ public: |
if (!blurProfile) { |
return nullptr; |
} |
- return new GrCircleBlurFragmentProcessor(circle, sigma, offset, blurProfile); |
+ return sk_sp<GrFragmentProcessor>( |
+ new GrCircleBlurFragmentProcessor(circle, sigma, offset, blurProfile)); |
} |
const SkRect& circle() const { return fCircle; } |