OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrAAHairLinePathRenderer_DEFINED | 9 #ifndef GrAAHairLinePathRenderer_DEFINED |
10 #define GrAAHairLinePathRenderer_DEFINED | 10 #define GrAAHairLinePathRenderer_DEFINED |
(...skipping 25 matching lines...) Expand all Loading... |
36 bool antiAlias) SK_OVERRIDE; | 36 bool antiAlias) SK_OVERRIDE; |
37 | 37 |
38 private: | 38 private: |
39 GrAAHairLinePathRenderer(const GrContext* context, | 39 GrAAHairLinePathRenderer(const GrContext* context, |
40 const GrIndexBuffer* fLinesIndexBuffer, | 40 const GrIndexBuffer* fLinesIndexBuffer, |
41 const GrIndexBuffer* fQuadsIndexBuffer); | 41 const GrIndexBuffer* fQuadsIndexBuffer); |
42 | 42 |
43 bool createLineGeom(GrDrawTarget* target, | 43 bool createLineGeom(GrDrawTarget* target, |
44 GrDrawState*, | 44 GrDrawState*, |
45 uint8_t coverage, | 45 uint8_t coverage, |
| 46 size_t vertexStride, |
46 GrDrawTarget::AutoReleaseGeometry* arg, | 47 GrDrawTarget::AutoReleaseGeometry* arg, |
47 SkRect* devBounds, | 48 SkRect* devBounds, |
48 const SkPath& path, | 49 const SkPath& path, |
49 const PtArray& lines, | 50 const PtArray& lines, |
50 int lineCnt); | 51 int lineCnt); |
51 | 52 |
52 bool createBezierGeom(GrDrawTarget* target, | 53 bool createBezierGeom(GrDrawTarget* target, |
53 GrDrawState*, | 54 GrDrawState*, |
54 GrDrawTarget::AutoReleaseGeometry* arg, | 55 GrDrawTarget::AutoReleaseGeometry* arg, |
55 SkRect* devBounds, | 56 SkRect* devBounds, |
56 const SkPath& path, | 57 const SkPath& path, |
57 const PtArray& quads, | 58 const PtArray& quads, |
58 int quadCnt, | 59 int quadCnt, |
59 const PtArray& conics, | 60 const PtArray& conics, |
60 int conicCnt, | 61 int conicCnt, |
61 const IntArray& qSubdivs, | 62 const IntArray& qSubdivs, |
62 const FloatArray& cWeights, | 63 const FloatArray& cWeights, |
63 size_t vertexStride); | 64 size_t vertexStride); |
64 | 65 |
65 const GrIndexBuffer* fLinesIndexBuffer; | 66 const GrIndexBuffer* fLinesIndexBuffer; |
66 const GrIndexBuffer* fQuadsIndexBuffer; | 67 const GrIndexBuffer* fQuadsIndexBuffer; |
67 | 68 |
68 typedef GrPathRenderer INHERITED; | 69 typedef GrPathRenderer INHERITED; |
69 }; | 70 }; |
70 | 71 |
71 | 72 |
72 #endif | 73 #endif |
OLD | NEW |