Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Unified Diff: src/gpu/GrAAConvexPathRenderer.cpp

Issue 14081016: Remove static effects from the effect memory pool. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/GrAAConvexPathRenderer.cpp
===================================================================
--- src/gpu/GrAAConvexPathRenderer.cpp (revision 8808)
+++ src/gpu/GrAAConvexPathRenderer.cpp (working copy)
@@ -450,12 +450,9 @@
public:
static GrEffectRef* Create() {
- // we go through this so we only have one copy of each effect
- static SkAutoTUnref<GrEffectRef> gQuadEdgeEffectRef(
- CreateEffectRef(AutoEffectUnref(SkNEW(QuadEdgeEffect))));
-
- gQuadEdgeEffectRef.get()->ref();
- return gQuadEdgeEffectRef;
+ GR_CREATE_STATIC_EFFECT(gQuadEdgeEffect, QuadEdgeEffect, ());
+ gQuadEdgeEffect->ref();
+ return gQuadEdgeEffect;
}
virtual ~QuadEdgeEffect() {}

Powered by Google App Engine
This is Rietveld 408576698