Index: src/effects/SkLumaColorFilter.cpp |
diff --git a/src/effects/SkLumaColorFilter.cpp b/src/effects/SkLumaColorFilter.cpp |
index 4c90f3d4f4f0f5de8d57db0a00b3da0a103d25c1..54dfc08c19f6f92e33db689bb2219f0a738b8490 100644 |
--- a/src/effects/SkLumaColorFilter.cpp |
+++ b/src/effects/SkLumaColorFilter.cpp |
@@ -61,8 +61,8 @@ void SkLumaColorFilter::toString(SkString* str) const { |
class LumaColorFilterEffect : public GrEffect { |
public: |
static GrEffectRef* Create() { |
- AutoEffectUnref effect(SkNEW(LumaColorFilterEffect)); |
- return CreateEffectRef(effect); |
+ GR_CREATE_STATIC_EFFECT(gLumaEffect, LumaColorFilterEffect, ()); |
+ return SkRef(gLumaEffect); |
} |
static const char* Name() { return "Luminance-to-Alpha"; } |