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