Index: src/effects/SkDisplacementMapEffect.cpp |
diff --git a/src/effects/SkDisplacementMapEffect.cpp b/src/effects/SkDisplacementMapEffect.cpp |
index a5519d1e9aad44f9310fe67d45122f75180eda66..44c3908779a5e9fa7b16b44512f78a6a3f255422 100644 |
--- a/src/effects/SkDisplacementMapEffect.cpp |
+++ b/src/effects/SkDisplacementMapEffect.cpp |
@@ -305,13 +305,12 @@ public: |
SkVector scale, |
GrTexture* displacement, const SkMatrix& offsetMatrix, |
GrTexture* color) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrDisplacementMapEffect, (xChannelSelector, |
- yChannelSelector, |
- scale, |
- displacement, |
- offsetMatrix, |
- color))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrDisplacementMapEffect, (xChannelSelector, |
+ yChannelSelector, |
+ scale, |
+ displacement, |
+ offsetMatrix, |
+ color)); |
} |
virtual ~GrDisplacementMapEffect(); |