Index: src/effects/SkColorFilters.cpp |
diff --git a/src/effects/SkColorFilters.cpp b/src/effects/SkColorFilters.cpp |
index bee3a50f3b420a961c8ee41cfc9a3f7ef30e6c53..18dbb9509e91932284452b66458c92d83d8378b0 100644 |
--- a/src/effects/SkColorFilters.cpp |
+++ b/src/effects/SkColorFilters.cpp |
@@ -195,8 +195,7 @@ public: |
SkDebugf("Failing to create color filter for mode %d\n", mode); |
return NULL; |
} |
- AutoEffectUnref effect(SkNEW_ARGS(ModeColorFilterEffect, (c, mode))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(ModeColorFilterEffect, (c, mode)); |
} |
virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags) const SK_OVERRIDE; |