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, | |
47 GrDrawTarget::AutoReleaseGeometry* arg, | 46 GrDrawTarget::AutoReleaseGeometry* arg, |
48 SkRect* devBounds, | 47 SkRect* devBounds, |
49 const SkPath& path, | 48 const SkPath& path, |
50 const PtArray& lines, | 49 const PtArray& lines, |
51 int lineCnt); | 50 int lineCnt); |
52 | 51 |
53 bool createBezierGeom(GrDrawTarget* target, | 52 bool createBezierGeom(GrDrawTarget* target, |
54 GrDrawState*, | 53 GrDrawState*, |
55 GrDrawTarget::AutoReleaseGeometry* arg, | 54 GrDrawTarget::AutoReleaseGeometry* arg, |
56 SkRect* devBounds, | 55 SkRect* devBounds, |
57 const SkPath& path, | 56 const SkPath& path, |
58 const PtArray& quads, | 57 const PtArray& quads, |
59 int quadCnt, | 58 int quadCnt, |
60 const PtArray& conics, | 59 const PtArray& conics, |
61 int conicCnt, | 60 int conicCnt, |
62 const IntArray& qSubdivs, | 61 const IntArray& qSubdivs, |
63 const FloatArray& cWeights, | 62 const FloatArray& cWeights, |
64 size_t vertexStride); | 63 size_t vertexStride); |
65 | 64 |
66 const GrIndexBuffer* fLinesIndexBuffer; | 65 const GrIndexBuffer* fLinesIndexBuffer; |
67 const GrIndexBuffer* fQuadsIndexBuffer; | 66 const GrIndexBuffer* fQuadsIndexBuffer; |
68 | 67 |
69 typedef GrPathRenderer INHERITED; | 68 typedef GrPathRenderer INHERITED; |
70 }; | 69 }; |
71 | 70 |
72 | 71 |
73 #endif | 72 #endif |
OLD | NEW |