| 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 12 matching lines...) Expand all Loading... |
| 23 const SkStrokeRec&, | 23 const SkStrokeRec&, |
| 24 bool antiAlias) const SK_OVERRIDE; | 24 bool antiAlias) const SK_OVERRIDE; |
| 25 | 25 |
| 26 typedef SkTArray<SkPoint, true> PtArray; | 26 typedef SkTArray<SkPoint, true> PtArray; |
| 27 typedef SkTArray<int, true> IntArray; | 27 typedef SkTArray<int, true> IntArray; |
| 28 typedef SkTArray<float, true> FloatArray; | 28 typedef SkTArray<float, true> FloatArray; |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 virtual bool onDrawPath(GrDrawTarget*, | 31 virtual bool onDrawPath(GrDrawTarget*, |
| 32 GrDrawState*, | 32 GrDrawState*, |
| 33 GrColor, |
| 33 const SkPath&, | 34 const SkPath&, |
| 34 const SkStrokeRec&, | 35 const SkStrokeRec&, |
| 35 bool antiAlias) SK_OVERRIDE; | 36 bool antiAlias) SK_OVERRIDE; |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 GrAAHairLinePathRenderer(const GrContext* context, | 39 GrAAHairLinePathRenderer(const GrContext* context, |
| 39 const GrIndexBuffer* fLinesIndexBuffer, | 40 const GrIndexBuffer* fLinesIndexBuffer, |
| 40 const GrIndexBuffer* fQuadsIndexBuffer); | 41 const GrIndexBuffer* fQuadsIndexBuffer); |
| 41 | 42 |
| 42 bool createLineGeom(GrDrawTarget* target, | 43 bool createLineGeom(GrDrawTarget* target, |
| 43 GrDrawState*, | 44 GrDrawState*, |
| 45 uint8_t coverage, |
| 44 GrDrawTarget::AutoReleaseGeometry* arg, | 46 GrDrawTarget::AutoReleaseGeometry* arg, |
| 45 SkRect* devBounds, | 47 SkRect* devBounds, |
| 46 const SkPath& path, | 48 const SkPath& path, |
| 47 const PtArray& lines, | 49 const PtArray& lines, |
| 48 int lineCnt); | 50 int lineCnt); |
| 49 | 51 |
| 50 bool createBezierGeom(GrDrawTarget* target, | 52 bool createBezierGeom(GrDrawTarget* target, |
| 51 GrDrawState*, | 53 GrDrawState*, |
| 52 GrDrawTarget::AutoReleaseGeometry* arg, | 54 GrDrawTarget::AutoReleaseGeometry* arg, |
| 53 SkRect* devBounds, | 55 SkRect* devBounds, |
| 54 const SkPath& path, | 56 const SkPath& path, |
| 55 const PtArray& quads, | 57 const PtArray& quads, |
| 56 int quadCnt, | 58 int quadCnt, |
| 57 const PtArray& conics, | 59 const PtArray& conics, |
| 58 int conicCnt, | 60 int conicCnt, |
| 59 const IntArray& qSubdivs, | 61 const IntArray& qSubdivs, |
| 60 const FloatArray& cWeights, | 62 const FloatArray& cWeights, |
| 61 size_t vertexStride); | 63 size_t vertexStride); |
| 62 | 64 |
| 63 const GrIndexBuffer* fLinesIndexBuffer; | 65 const GrIndexBuffer* fLinesIndexBuffer; |
| 64 const GrIndexBuffer* fQuadsIndexBuffer; | 66 const GrIndexBuffer* fQuadsIndexBuffer; |
| 65 | 67 |
| 66 typedef GrPathRenderer INHERITED; | 68 typedef GrPathRenderer INHERITED; |
| 67 }; | 69 }; |
| 68 | 70 |
| 69 | 71 |
| 70 #endif | 72 #endif |
| OLD | NEW |