Index: src/effects/SkMagnifierImageFilter.cpp |
diff --git a/src/effects/SkMagnifierImageFilter.cpp b/src/effects/SkMagnifierImageFilter.cpp |
index 99c0176a1131d14879e1093d1913552805413230..16f4066d3add1f1a6a8285f4d0fd621d99ee8a08 100644 |
--- a/src/effects/SkMagnifierImageFilter.cpp |
+++ b/src/effects/SkMagnifierImageFilter.cpp |
@@ -32,14 +32,13 @@ public: |
float yInvZoom, |
float xInvInset, |
float yInvInset) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrMagnifierEffect, (texture, |
- xOffset, |
- yOffset, |
- xInvZoom, |
- yInvZoom, |
- xInvInset, |
- yInvInset))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrMagnifierEffect, (texture, |
+ xOffset, |
+ yOffset, |
+ xInvZoom, |
+ yInvZoom, |
+ xInvInset, |
+ yInvInset)); |
} |
virtual ~GrMagnifierEffect() {}; |