Index: src/effects/SkLightingImageFilter.cpp |
diff --git a/src/effects/SkLightingImageFilter.cpp b/src/effects/SkLightingImageFilter.cpp |
index c0c605ca040b88216ccd3b4dbdf7785aa74cb04f..5fc3474e3d35c1a5c433278fdc83572dabb1feb4 100644 |
--- a/src/effects/SkLightingImageFilter.cpp |
+++ b/src/effects/SkLightingImageFilter.cpp |
@@ -339,12 +339,11 @@ public: |
SkScalar surfaceScale, |
const SkMatrix& matrix, |
SkScalar kd) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrDiffuseLightingEffect, (texture, |
- light, |
- surfaceScale, |
- matrix, |
- kd))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrDiffuseLightingEffect, (texture, |
+ light, |
+ surfaceScale, |
+ matrix, |
+ kd)); |
} |
static const char* Name() { return "DiffuseLighting"; } |
@@ -376,13 +375,12 @@ public: |
const SkMatrix& matrix, |
SkScalar ks, |
SkScalar shininess) { |
- AutoEffectUnref effect(SkNEW_ARGS(GrSpecularLightingEffect, (texture, |
- light, |
- surfaceScale, |
- matrix, |
- ks, |
- shininess))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(GrSpecularLightingEffect, (texture, |
+ light, |
+ surfaceScale, |
+ matrix, |
+ ks, |
+ shininess)); |
} |
static const char* Name() { return "SpecularLighting"; } |