Index: src/effects/SkAlphaThresholdFilter.cpp |
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp |
index 0bc906dae9995920d9ba8d09d132bbf81b4f8c54..b375c88c11d8b2f2cade918941ea39fcbc083cc6 100644 |
--- a/src/effects/SkAlphaThresholdFilter.cpp |
+++ b/src/effects/SkAlphaThresholdFilter.cpp |
@@ -60,11 +60,10 @@ public: |
GrTexture* maskTexture, |
float innerThreshold, |
float outerThreshold) { |
- AutoEffectUnref effect(SkNEW_ARGS(AlphaThresholdEffect, (texture, |
- maskTexture, |
- innerThreshold, |
- outerThreshold))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(AlphaThresholdEffect, (texture, |
+ maskTexture, |
+ innerThreshold, |
+ outerThreshold)); |
} |
virtual ~AlphaThresholdEffect() {}; |