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 17 matching lines...) Expand all Loading... |
28 const SkStrokeRec& stroke, | 28 const SkStrokeRec& stroke, |
29 GrShaderCaps* shaderCaps); | 29 GrShaderCaps* shaderCaps); |
30 static GrDrawBatch* CreateRRectBatch(GrColor, | 30 static GrDrawBatch* CreateRRectBatch(GrColor, |
31 const SkMatrix& viewMatrix, | 31 const SkMatrix& viewMatrix, |
32 const SkRRect& rrect, | 32 const SkRRect& rrect, |
33 const SkStrokeRec& stroke, | 33 const SkStrokeRec& stroke, |
34 GrShaderCaps* shaderCaps); | 34 GrShaderCaps* shaderCaps); |
35 | 35 |
36 private: | 36 private: |
37 GrOvalRenderer(); | 37 GrOvalRenderer(); |
| 38 |
| 39 static GrDrawBatch* CreateEllipseBatch(GrColor, |
| 40 const SkMatrix& viewMatrix, |
| 41 const SkRect& ellipse, |
| 42 const SkStrokeRec& stroke); |
| 43 static GrDrawBatch* CreateDIEllipseBatch(GrColor, |
| 44 const SkMatrix& viewMatrix, |
| 45 const SkRect& ellipse, |
| 46 const SkStrokeRec& stroke); |
| 47 static GrDrawBatch* CreateCircleBatch(GrColor, |
| 48 const SkMatrix& viewMatrix, |
| 49 const SkRect& circle, |
| 50 const SkStrokeRec& stroke); |
38 }; | 51 }; |
39 | 52 |
40 #endif // GrOvalRenderer_DEFINED | 53 #endif // GrOvalRenderer_DEFINED |
OLD | NEW |