OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 GrAAStrokeRectBatch_DEFINED | 8 #ifndef GrAAStrokeRectBatch_DEFINED |
9 #define GrAAStrokeRectBatch_DEFINED | 9 #define GrAAStrokeRectBatch_DEFINED |
10 | 10 |
11 #include "GrColor.h" | 11 #include "GrColor.h" |
12 | 12 |
13 class GrBatch; | 13 class GrBatch; |
14 class GrDrawBatch; | 14 class GrDrawBatch; |
15 class GrResourceProvider; | 15 class GrResourceProvider; |
16 class SkMatrix; | 16 class SkMatrix; |
17 struct SkRect; | 17 struct SkRect; |
18 class SkStrokeRec; | |
18 | 19 |
19 namespace GrAAStrokeRectBatch { | 20 namespace GrAAStrokeRectBatch { |
20 | 21 |
robertphillips
2015/09/22 17:35:46
Do we need this entry point any more ?
joshualitt
2015/09/22 17:44:54
Unfortunately we do, for the fill AA Nested rects
| |
21 GrDrawBatch* Create(GrColor color, | 22 GrDrawBatch* Create(GrColor color, |
22 const SkMatrix& viewMatrix, | 23 const SkMatrix& viewMatrix, |
23 const SkRect& devOutside, | 24 const SkRect& devOutside, |
24 const SkRect& devOutsideAssist, | 25 const SkRect& devOutsideAssist, |
25 const SkRect& devInside, | 26 const SkRect& devInside, |
26 bool miterStroke, | 27 bool miterStroke, |
27 bool degenerate); | 28 bool degenerate); |
28 | 29 |
30 GrDrawBatch* Create(GrColor color, | |
31 const SkMatrix& viewMatrix, | |
32 const SkRect& rect, | |
33 const SkStrokeRec& stroke); | |
34 | |
29 bool Append(GrBatch*, | 35 bool Append(GrBatch*, |
30 GrColor color, | 36 GrColor color, |
31 const SkMatrix& viewMatrix, | 37 const SkMatrix& viewMatrix, |
32 const SkRect& devOutside, | 38 const SkRect& rect, |
33 const SkRect& devOutsideAssist, | 39 const SkStrokeRec& stroke); |
34 const SkRect& devInside, | |
35 bool miterStroke, | |
36 bool degenerate); | |
37 | 40 |
38 }; | 41 }; |
39 | 42 |
40 #endif | 43 #endif |
OLD | NEW |