Index: src/gpu/effects/GrCustomCoordsTextureEffect.h |
diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.h b/src/gpu/effects/GrCustomCoordsTextureEffect.h |
index 1caecf2f6d6e96285feb6ed618c4d7d68e792456..5dc830aed18178cc6fdfbbac4e57c48b5c6483be 100644 |
--- a/src/gpu/effects/GrCustomCoordsTextureEffect.h |
+++ b/src/gpu/effects/GrCustomCoordsTextureEffect.h |
@@ -21,8 +21,7 @@ class GrGLCustomCoordsTextureEffect; |
class GrCustomCoordsTextureEffect : public GrVertexEffect { |
public: |
static GrEffectRef* Create(GrTexture* tex, const GrTextureParams& p) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrCustomCoordsTextureEffect, (tex, p))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrCustomCoordsTextureEffect, (tex, p)); |
} |
virtual ~GrCustomCoordsTextureEffect() {} |