Index: src/gpu/GrAAHairLinePathRenderer.h |
diff --git a/src/gpu/GrAAHairLinePathRenderer.h b/src/gpu/GrAAHairLinePathRenderer.h |
index 064fc18c92aa8ec24ed65f20c320d249ffb87a41..36c508307d30a0bb24dc98683a3df365abf9efed 100644 |
--- a/src/gpu/GrAAHairLinePathRenderer.h |
+++ b/src/gpu/GrAAHairLinePathRenderer.h |
@@ -11,6 +11,10 @@ |
#include "GrPathRenderer.h" |
+typedef SkTArray<SkPoint, true> PtArray; |
bsalomon
2013/08/12 17:25:43
Can we nest these in the class?
jvanverth1
2013/08/13 15:04:10
Done.
|
+typedef SkTArray<int, true> IntArray; |
+typedef SkTArray<float, true> FloatArray; |
+ |
class GrAAHairLinePathRenderer : public GrPathRenderer { |
public: |
virtual ~GrAAHairLinePathRenderer(); |
@@ -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; |