diff options
Diffstat (limited to 'src/gpu/GrAARectRenderer.cpp')
-rw-r--r-- | src/gpu/GrAARectRenderer.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp index eacd3f1ec9..418d80d713 100644 --- a/src/gpu/GrAARectRenderer.cpp +++ b/src/gpu/GrAARectRenderer.cpp @@ -30,10 +30,9 @@ class GrGLRectEffect; class GrRectEffect : public GrEffect { public: static GrEffectRef* Create() { - static SkAutoTUnref<GrEffectRef> gRectEffectRef( - CreateEffectRef(AutoEffectUnref(SkNEW(GrRectEffect)))); - gRectEffectRef.get()->ref(); - return gRectEffectRef; + GR_CREATE_STATIC_EFFECT(gRectEffect, GrRectEffect, ()); + gRectEffect->ref(); + return gRectEffect; } virtual ~GrRectEffect() {} |