Index: src/effects/SkPerlinNoiseShader.cpp |
diff --git a/src/effects/SkPerlinNoiseShader.cpp b/src/effects/SkPerlinNoiseShader.cpp |
index 502cc0764b4878aa465fca396ebde1edc7a29afa..894af42ceae883feca75495f266a9598354d463d 100644 |
--- a/src/effects/SkPerlinNoiseShader.cpp |
+++ b/src/effects/SkPerlinNoiseShader.cpp |
@@ -530,9 +530,8 @@ public: |
SkPerlinNoiseShader::PaintingData* paintingData, |
GrTexture* permutationsTexture, GrTexture* noiseTexture, |
const SkMatrix& matrix, uint8_t alpha) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrPerlinNoiseEffect, (type, numOctaves, |
- stitchTiles, paintingData, permutationsTexture, noiseTexture, matrix, alpha))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrPerlinNoiseEffect, (type, numOctaves, stitchTiles, paintingData, |
+ permutationsTexture, noiseTexture, matrix, alpha)); |
} |
virtual ~GrPerlinNoiseEffect() { |