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 24 matching lines...) Expand all Loading... |
35 const SkMatrix& viewMatrix, | 35 const SkMatrix& viewMatrix, |
36 const SkPath&, | 36 const SkPath&, |
37 const SkStrokeRec&, | 37 const SkStrokeRec&, |
38 bool antiAlias) SK_OVERRIDE; | 38 bool antiAlias) SK_OVERRIDE; |
39 | 39 |
40 private: | 40 private: |
41 GrAAHairLinePathRenderer(const GrContext* context, | 41 GrAAHairLinePathRenderer(const GrContext* context, |
42 const GrIndexBuffer* fLinesIndexBuffer, | 42 const GrIndexBuffer* fLinesIndexBuffer, |
43 const GrIndexBuffer* fQuadsIndexBuffer); | 43 const GrIndexBuffer* fQuadsIndexBuffer); |
44 | 44 |
| 45 bool createLineGeom(GrDrawTarget* target, |
| 46 GrPipelineBuilder*, |
| 47 const SkMatrix& viewMatrix, |
| 48 uint8_t coverage, |
| 49 size_t vertexStride, |
| 50 GrDrawTarget::AutoReleaseGeometry* arg, |
| 51 SkRect* devBounds, |
| 52 const SkPath& path, |
| 53 const PtArray& lines, |
| 54 int lineCnt); |
| 55 |
| 56 bool createBezierGeom(GrDrawTarget* target, |
| 57 GrPipelineBuilder*, |
| 58 const SkMatrix& viewMatrix, |
| 59 GrDrawTarget::AutoReleaseGeometry* arg, |
| 60 SkRect* devBounds, |
| 61 const SkPath& path, |
| 62 const PtArray& quads, |
| 63 int quadCnt, |
| 64 const PtArray& conics, |
| 65 int conicCnt, |
| 66 const IntArray& qSubdivs, |
| 67 const FloatArray& cWeights, |
| 68 size_t vertexStride); |
| 69 |
45 const GrIndexBuffer* fLinesIndexBuffer; | 70 const GrIndexBuffer* fLinesIndexBuffer; |
46 const GrIndexBuffer* fQuadsIndexBuffer; | 71 const GrIndexBuffer* fQuadsIndexBuffer; |
47 | 72 |
48 typedef GrPathRenderer INHERITED; | 73 typedef GrPathRenderer INHERITED; |
49 }; | 74 }; |
50 | 75 |
51 | 76 |
52 #endif | 77 #endif |
OLD | NEW |