Index: src/effects/gradients/SkTwoPointRadialGradient.cpp |
diff --git a/src/effects/gradients/SkTwoPointRadialGradient.cpp b/src/effects/gradients/SkTwoPointRadialGradient.cpp |
index 3507c891c0677ec8081360e35d5d0d210c5b5d05..22feb7189c0cd33642e4bc465949f8f8961ac216 100644 |
--- a/src/effects/gradients/SkTwoPointRadialGradient.cpp |
+++ b/src/effects/gradients/SkTwoPointRadialGradient.cpp |
@@ -438,8 +438,7 @@ public: |
const SkTwoPointRadialGradient& shader, |
const SkMatrix& matrix, |
SkShader::TileMode tm) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrRadial2Gradient, (ctx, shader, matrix, tm))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrRadial2Gradient, (ctx, shader, matrix, tm)); |
} |
virtual ~GrRadial2Gradient() { } |