Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 28b2e1eb445b4c3a9c2e2b61fa8ea209133d0219..ec94eca76d42062ae9995a56b347684ae875c4b7 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -58,8 +58,8 @@ void SkLumaColorFilter::toString(SkString* str) const { |
#if SK_SUPPORT_GPU |
class LumaColorFilterEffect : public GrFragmentProcessor { |
public: |
- static const GrFragmentProcessor* Create() { |
- return new LumaColorFilterEffect; |
+ static sk_sp<GrFragmentProcessor> Make() { |
+ return sk_sp<GrFragmentProcessor>(new LumaColorFilterEffect); |
} |
const char* name() const override { return "Luminance-to-Alpha"; } |
@@ -111,8 +111,7 @@ private: |
} |
}; |
-const GrFragmentProcessor* SkLumaColorFilter::asFragmentProcessor(GrContext*) const { |
- |
- return LumaColorFilterEffect::Create(); |
+sk_sp<GrFragmentProcessor> SkLumaColorFilter::asFragmentProcessor(GrContext*) const { |
+ return LumaColorFilterEffect::Make(); |
} |
#endif |