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

Unified Diff: src/gpu/GrAAConvexPathRenderer.cpp

Issue 13465019: Fix for effect cache key (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « include/gpu/GrTBackendEffectFactory.h ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrAAConvexPathRenderer.cpp
===================================================================
--- src/gpu/GrAAConvexPathRenderer.cpp (revision 8496)
+++ src/gpu/GrAAConvexPathRenderer.cpp (working copy)
@@ -451,11 +451,10 @@
static GrEffectRef* Create() {
// we go through this so we only have one copy of each effect
- static GrEffectRef* gQuadEdgeEffectRef =
- CreateEffectRef(AutoEffectUnref(SkNEW(QuadEdgeEffect)));
- static SkAutoTUnref<GrEffectRef> gUnref(gQuadEdgeEffectRef);
+ static SkAutoTUnref<GrEffectRef> gQuadEdgeEffectRef(
+ CreateEffectRef(AutoEffectUnref(SkNEW(QuadEdgeEffect))));
- gQuadEdgeEffectRef->ref();
+ gQuadEdgeEffectRef.get()->ref();
return gQuadEdgeEffectRef;
}
@@ -524,7 +523,7 @@
private:
typedef GrGLEffect INHERITED;
};
-
+
private:
QuadEdgeEffect() {
this->addVertexAttrib(kVec4f_GrSLType);
« no previous file with comments | « include/gpu/GrTBackendEffectFactory.h ('k') | src/gpu/GrAAHairLinePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698