Index: src/core/SkXfermode.cpp |
diff --git a/src/core/SkXfermode.cpp b/src/core/SkXfermode.cpp |
index b3e2ed16bff30a5fdcb00268874497e718376c54..cf4f19f4485079c250cdd9f2a41b41e9f3c62992 100644 |
--- a/src/core/SkXfermode.cpp |
+++ b/src/core/SkXfermode.cpp |
@@ -797,8 +797,7 @@ public: |
if (!IsSupportedMode(mode)) { |
return NULL; |
} else { |
- AutoEffectUnref effect(SkNEW_ARGS(XferEffect, (mode, background))); |
- return CreateEffectRef(effect); |
+ return SkNEW_ARGS(XferEffect, (mode, background)); |
} |
} |
@@ -1230,8 +1229,7 @@ GrEffectRef* XferEffect::TestCreate(SkRandom* rand, |
GrTexture*[]) { |
int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLastSeparableMode); |
- AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermode::Mode>(mode), NULL))); |
- return CreateEffectRef(gEffect); |
+ return SkNEW_ARGS(XferEffect, (static_cast<SkXfermode::Mode>(mode), NULL)); |
} |
#endif |