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

Unified Diff: src/gpu/effects/GrCircleEdgeEffect.h

Issue 12989004: Clean up GrCircleEdgeEffect and GrEllipseEdgeEffect (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 | « no previous file | src/gpu/effects/GrCircleEdgeEffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/effects/GrCircleEdgeEffect.h
===================================================================
--- src/gpu/effects/GrCircleEdgeEffect.h (revision 8302)
+++ src/gpu/effects/GrCircleEdgeEffect.h (working copy)
@@ -52,7 +52,8 @@
GrCircleEdgeEffect(bool stroke);
virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE {
- return true;
+ const GrCircleEdgeEffect& cee = CastEffect<GrCircleEdgeEffect>(other);
+ return cee.fStroke == fStroke;
}
bool fStroke;
« no previous file with comments | « no previous file | src/gpu/effects/GrCircleEdgeEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698