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 | 8 |
9 #ifndef GrOvalRenderer_DEFINED | 9 #ifndef GrOvalRenderer_DEFINED |
10 #define GrOvalRenderer_DEFINED | 10 #define GrOvalRenderer_DEFINED |
(...skipping 15 matching lines...) Expand all Loading... |
26 public: | 26 public: |
27 SK_DECLARE_INST_COUNT(GrOvalRenderer) | 27 SK_DECLARE_INST_COUNT(GrOvalRenderer) |
28 | 28 |
29 GrOvalRenderer() {} | 29 GrOvalRenderer() {} |
30 | 30 |
31 ~GrOvalRenderer() {} | 31 ~GrOvalRenderer() {} |
32 | 32 |
33 bool drawOval(GrDrawTarget* target, const GrContext* context, const GrPaint&
paint, | 33 bool drawOval(GrDrawTarget* target, const GrContext* context, const GrPaint&
paint, |
34 const GrRect& oval, const SkStrokeRec& stroke); | 34 const GrRect& oval, const SkStrokeRec& stroke); |
35 private: | 35 private: |
36 void drawEllipse(GrDrawTarget* target, const GrPaint& paint, | 36 bool drawEllipse(GrDrawTarget* target, const GrPaint& paint, |
37 const GrRect& ellipse, | 37 const GrRect& ellipse, |
38 const SkStrokeRec& stroke); | 38 const SkStrokeRec& stroke); |
39 void drawCircle(GrDrawTarget* target, const GrPaint& paint, | 39 void drawCircle(GrDrawTarget* target, const GrPaint& paint, |
40 const GrRect& circle, | 40 const GrRect& circle, |
41 const SkStrokeRec& stroke); | 41 const SkStrokeRec& stroke); |
42 | 42 |
43 typedef GrRefCnt INHERITED; | 43 typedef GrRefCnt INHERITED; |
44 }; | 44 }; |
45 | 45 |
46 #endif // GrOvalRenderer_DEFINED | 46 #endif // GrOvalRenderer_DEFINED |
OLD | NEW |