Index: src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
diff --git a/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp b/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
index 4f9f7584678f8bf52a9bdbfb3a859e46799c8621..b6959e32e17d3ad30193f4dde2de2f8712239e43 100644 |
--- a/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
+++ b/src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp |
@@ -63,8 +63,7 @@ public: |
const SkTwoPointConicalGradient& shader, |
const SkMatrix& matrix, |
SkShader::TileMode tm) { |
- AutoEffectUnref effect(SkNEW_ARGS(Edge2PtConicalEffect, (ctx, shader, matrix, tm))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(Edge2PtConicalEffect, (ctx, shader, matrix, tm)); |
} |
virtual ~Edge2PtConicalEffect() {} |
@@ -371,8 +370,7 @@ public: |
const SkMatrix& matrix, |
SkShader::TileMode tm, |
SkScalar focalX) { |
- AutoEffectUnref effect(SkNEW_ARGS(FocalOutside2PtConicalEffect, (ctx, shader, matrix, tm, focalX))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(FocalOutside2PtConicalEffect, (ctx, shader, matrix, tm, focalX)); |
} |
virtual ~FocalOutside2PtConicalEffect() { } |
@@ -586,8 +584,7 @@ public: |
const SkMatrix& matrix, |
SkShader::TileMode tm, |
SkScalar focalX) { |
- AutoEffectUnref effect(SkNEW_ARGS(FocalInside2PtConicalEffect, (ctx, shader, matrix, tm, focalX))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(FocalInside2PtConicalEffect, (ctx, shader, matrix, tm, focalX)); |
} |
virtual ~FocalInside2PtConicalEffect() {} |
@@ -820,8 +817,7 @@ public: |
const SkMatrix& matrix, |
SkShader::TileMode tm, |
const CircleConicalInfo& info) { |
- AutoEffectUnref effect(SkNEW_ARGS(CircleInside2PtConicalEffect, (ctx, shader, matrix, tm, info))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(CircleInside2PtConicalEffect, (ctx, shader, matrix, tm, info)); |
} |
virtual ~CircleInside2PtConicalEffect() {} |
@@ -1033,8 +1029,7 @@ public: |
const SkMatrix& matrix, |
SkShader::TileMode tm, |
const CircleConicalInfo& info) { |
- AutoEffectUnref effect(SkNEW_ARGS(CircleOutside2PtConicalEffect, (ctx, shader, matrix, tm, info))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(CircleOutside2PtConicalEffect, (ctx, shader, matrix, tm, info)); |
} |
virtual ~CircleOutside2PtConicalEffect() {} |