Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 39d2bbf2caf37a61e6325141f25686f52aede2d0..03db0bb78bef50dc78affad1a7046ac69f8247f8 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -55,8 +55,7 @@ void SkLumaColorFilter::toString(SkString* str) const { |
class LumaColorFilterEffect : public GrFragmentProcessor { |
public: |
static const GrFragmentProcessor* Create() { |
- static LumaColorFilterEffect gLumaEffect; |
- return SkRef(&gLumaEffect); |
+ return new LumaColorFilterEffect; |
} |
const char* name() const override { return "Luminance-to-Alpha"; } |