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

Side by Side Diff: src/gpu/effects/GrEllipseEdgeEffect.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 | « src/gpu/effects/GrCircleEdgeEffect.cpp ('k') | src/gpu/effects/GrEllipseEdgeEffect.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 GrEllipseEdgeEffect_DEFINED 8 #ifndef GrEllipseEdgeEffect_DEFINED
9 #define GrEllipseEdgeEffect_DEFINED 9 #define GrEllipseEdgeEffect_DEFINED
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 typedef GrGLEllipseEdgeEffect GLEffect; 44 typedef GrGLEllipseEdgeEffect GLEffect;
45 45
46 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; 46 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE;
47 47
48 inline bool isStroked() const { return fStroke; } 48 inline bool isStroked() const { return fStroke; }
49 49
50 private: 50 private:
51 GrEllipseEdgeEffect(bool stroke); 51 GrEllipseEdgeEffect(bool stroke);
52 52
53 virtual bool onIsEqual(const GrEffect&) const SK_OVERRIDE { 53 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE {
54 return true; 54 const GrEllipseEdgeEffect& eee = CastEffect<GrEllipseEdgeEffect>(other);
55 return eee.fStroke == fStroke;
55 } 56 }
56 57
57 bool fStroke; 58 bool fStroke;
58 59
59 GR_DECLARE_EFFECT_TEST; 60 GR_DECLARE_EFFECT_TEST;
60 61
61 typedef GrEffect INHERITED; 62 typedef GrEffect INHERITED;
62 }; 63 };
63 64
64 #endif 65 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCircleEdgeEffect.cpp ('k') | src/gpu/effects/GrEllipseEdgeEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698