Index: src/gpu/effects/GrTextureDomain.cpp |
diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp |
index 656000b0595828c4d1c398cfbd658c2c3f4a25ad..cb2ad5f5da1f2eb1c1d1eefabe09e635f1fd915b 100644 |
--- a/src/gpu/effects/GrTextureDomain.cpp |
+++ b/src/gpu/effects/GrTextureDomain.cpp |
@@ -208,14 +208,12 @@ GrEffectRef* GrTextureDomainEffect::Create(GrTexture* texture, |
return GrSimpleTextureEffect::Create(texture, matrix, filterMode); |
} else { |
- AutoEffectUnref effect(SkNEW_ARGS(GrTextureDomainEffect, (texture, |
- matrix, |
- domain, |
- mode, |
- filterMode, |
- coordSet))); |
- return CreateEffectRef(effect); |
- |
+ return SkNEW_ARGS(GrTextureDomainEffect, (texture, |
+ matrix, |
+ domain, |
+ mode, |
+ filterMode, |
+ coordSet)); |
} |
} |