Index: src/gpu/GrAAHairLinePathRenderer.cpp |
=================================================================== |
--- src/gpu/GrAAHairLinePathRenderer.cpp (revision 8808) |
+++ src/gpu/GrAAHairLinePathRenderer.cpp (working copy) |
@@ -508,12 +508,9 @@ |
public: |
static GrEffectRef* Create() { |
- // we go through this so we only have one copy of each effect |
- static SkAutoTUnref<GrEffectRef> gHairQuadEdgeEffectRef( |
- CreateEffectRef(AutoEffectUnref(SkNEW(HairQuadEdgeEffect)))); |
- |
- gHairQuadEdgeEffectRef.get()->ref(); |
- return gHairQuadEdgeEffectRef; |
+ GR_CREATE_STATIC_EFFECT(gHairQuadEdgeEffect, HairQuadEdgeEffect, ()); |
+ gHairQuadEdgeEffect->ref(); |
+ return gHairQuadEdgeEffect; |
} |
virtual ~HairQuadEdgeEffect() {} |
@@ -609,12 +606,9 @@ |
public: |
static GrEffectRef* Create() { |
- // we go through this so we only have one copy of each effect |
- static SkAutoTUnref<GrEffectRef> gHairLineEdgeEffectRef( |
- CreateEffectRef(AutoEffectUnref(SkNEW(HairLineEdgeEffect)))); |
- |
- gHairLineEdgeEffectRef.get()->ref(); |
- return gHairLineEdgeEffectRef; |
+ GR_CREATE_STATIC_EFFECT(gHairLineEdge, HairLineEdgeEffect, ()); |
+ gHairLineEdge->ref(); |
+ return gHairLineEdge; |
} |
virtual ~HairLineEdgeEffect() {} |