aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrYUVtoRGBEffect.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-07-08 07:34:20 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-07-08 07:34:21 -0700
commit55fad7af61c21d502acb9891d631e8aa29e3628c (patch)
tree36a2e6b6aace85ff67b4d6e6ad9aedf53707aeb7 /src/gpu/effects/GrYUVtoRGBEffect.cpp
parent97b9ab72cd5ee0cba4692082737266376425f27c (diff)
Remove GrEffect::CreateEffectRef and GrEffect::AutoEffectRef.
R=robertphillips@google.com Author: bsalomon@google.com Review URL: https://codereview.chromium.org/371103003
Diffstat (limited to 'src/gpu/effects/GrYUVtoRGBEffect.cpp')
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp
index 866f4a66b5..539b4ac186 100644
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp
@@ -17,8 +17,7 @@ namespace {
class YUVtoRGBEffect : public GrEffect {
public:
static GrEffect* Create(GrTexture* yTexture, GrTexture* uTexture, GrTexture* vTexture) {
- AutoEffectUnref effect(SkNEW_ARGS(YUVtoRGBEffect, (yTexture, uTexture, vTexture)));
- return CreateEffectRef(effect);
+ return SkNEW_ARGS(YUVtoRGBEffect, (yTexture, uTexture, vTexture));
}
static const char* Name() { return "YUV to RGB"; }