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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/effects/GrCircleEdgeEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrCircleEdgeEffect_DEFINED 8 #ifndef GrCircleEdgeEffect_DEFINED
9 #define GrCircleEdgeEffect_DEFINED 9 #define GrCircleEdgeEffect_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 typedef GrGLCircleEdgeEffect GLEffect; 45 typedef GrGLCircleEdgeEffect GLEffect;
46 46
47 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; 47 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE;
48 48
49 inline bool isStroked() const { return fStroke; } 49 inline bool isStroked() const { return fStroke; }
50 50
51 private: 51 private:
52 GrCircleEdgeEffect(bool stroke); 52 GrCircleEdgeEffect(bool stroke);
53 53
54 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { 54 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE {
55 return true; 55 const GrCircleEdgeEffect& cee = CastEffect<GrCircleEdgeEffect>(other);
56 return cee.fStroke == fStroke;
56 } 57 }
57 58
58 bool fStroke; 59 bool fStroke;
59 60
60 GR_DECLARE_EFFECT_TEST; 61 GR_DECLARE_EFFECT_TEST;
61 62
62 typedef GrEffect INHERITED; 63 typedef GrEffect INHERITED;
63 }; 64 };
64 65
65 #endif 66 #endif
OLDNEW
« 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