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 GrOvalRenderer_DEFINED | 8 #ifndef GrOvalRenderer_DEFINED |
9 #define GrOvalRenderer_DEFINED | 9 #define GrOvalRenderer_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 bool drawOval(GrDrawTarget* target, const GrContext* context, bool useAA, | 35 bool drawOval(GrDrawTarget* target, const GrContext* context, bool useAA, |
36 const SkRect& oval, const SkStrokeRec& stroke); | 36 const SkRect& oval, const SkStrokeRec& stroke); |
37 bool drawSimpleRRect(GrDrawTarget* target, GrContext* context, bool useAA, | 37 bool drawSimpleRRect(GrDrawTarget* target, GrContext* context, bool useAA, |
38 const SkRRect& rrect, const SkStrokeRec& stroke); | 38 const SkRRect& rrect, const SkStrokeRec& stroke); |
39 | 39 |
40 private: | 40 private: |
41 bool drawEllipse(GrDrawTarget* target, bool useAA, | 41 bool drawEllipse(GrDrawTarget* target, bool useAA, |
42 const SkRect& ellipse, | 42 const SkRect& ellipse, |
43 const SkStrokeRec& stroke); | 43 const SkStrokeRec& stroke); |
| 44 bool drawDIEllipse(GrDrawTarget* target, bool useAA, |
| 45 const SkRect& ellipse, |
| 46 const SkStrokeRec& stroke); |
44 void drawCircle(GrDrawTarget* target, bool useAA, | 47 void drawCircle(GrDrawTarget* target, bool useAA, |
45 const SkRect& circle, | 48 const SkRect& circle, |
46 const SkStrokeRec& stroke); | 49 const SkStrokeRec& stroke); |
47 | 50 |
48 GrIndexBuffer* rRectIndexBuffer(GrGpu* gpu); | 51 GrIndexBuffer* rRectIndexBuffer(GrGpu* gpu); |
49 | 52 |
50 GrIndexBuffer* fRRectIndexBuffer; | 53 GrIndexBuffer* fRRectIndexBuffer; |
51 | 54 |
52 typedef GrRefCnt INHERITED; | 55 typedef GrRefCnt INHERITED; |
53 }; | 56 }; |
54 | 57 |
55 #endif // GrOvalRenderer_DEFINED | 58 #endif // GrOvalRenderer_DEFINED |
OLD | NEW |