Index: src/gpu/GrAAHairLinePathRenderer.h |
diff --git a/src/gpu/GrAAHairLinePathRenderer.h b/src/gpu/GrAAHairLinePathRenderer.h |
index 064fc18c92aa8ec24ed65f20c320d249ffb87a41..c8a3eae738ee39b6957f210bcd9f7b5a61e8cc43 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.h |
+++ b/src/gpu/GrAAHairLinePathRenderer.h |
@@ -21,7 +21,11 @@ public: |
const SkStrokeRec& stroke, |
const GrDrawTarget* target, |
bool antiAlias) const SK_OVERRIDE; |
- |
+ |
+ typedef SkTArray<SkPoint, true> PtArray; |
+ typedef SkTArray<int, true> IntArray; |
+ typedef SkTArray<float, true> FloatArray; |
+ |
protected: |
virtual bool onDrawPath(const SkPath& path, |
const SkStrokeRec& stroke, |
@@ -33,13 +37,23 @@ private: |
const GrIndexBuffer* fLinesIndexBuffer, |
const GrIndexBuffer* fQuadsIndexBuffer); |
- bool createGeom(const SkPath& path, |
- GrDrawTarget* target, |
- int* lineCnt, |
- int* quadCnt, |
- int* conicCnt, |
- GrDrawTarget::AutoReleaseGeometry* arg, |
- SkRect* devBounds ); |
+ bool createLineGeom(const SkPath& path, |
+ GrDrawTarget* target, |
+ const PtArray& lines, |
+ int lineCnt, |
+ GrDrawTarget::AutoReleaseGeometry* arg, |
+ SkRect* devBounds); |
+ |
+ bool createBezierGeom(const SkPath& path, |
+ GrDrawTarget* target, |
+ const PtArray& quads, |
+ int quadCnt, |
+ const PtArray& conics, |
+ int conicCnt, |
+ const IntArray& qSubdivs, |
+ const FloatArray& cWeights, |
+ GrDrawTarget::AutoReleaseGeometry* arg, |
+ SkRect* devBounds); |
const GrIndexBuffer* fLinesIndexBuffer; |
const GrIndexBuffer* fQuadsIndexBuffer; |