Index: src/effects/gradients/SkLinearGradient.cpp |
diff --git a/src/effects/gradients/SkLinearGradient.cpp b/src/effects/gradients/SkLinearGradient.cpp |
index 768623a2b035d69db6d4d12eca8632a92ff49c62..d518cc700f954a8e023c8f5fe1bcb641917eacc9 100644 |
--- a/src/effects/gradients/SkLinearGradient.cpp |
+++ b/src/effects/gradients/SkLinearGradient.cpp |
@@ -484,8 +484,7 @@ public: |
const SkLinearGradient& shader, |
const SkMatrix& matrix, |
SkShader::TileMode tm) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrLinearGradient, (ctx, shader, matrix, tm))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrLinearGradient, (ctx, shader, matrix, tm)); |
} |
virtual ~GrLinearGradient() { } |