OLD | NEW |
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 Loading... |
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 |
OLD | NEW |