Chromium Code Reviews| Index: src/core/SkPathPriv.h |
| diff --git a/src/core/SkPathPriv.h b/src/core/SkPathPriv.h |
| index 60b0f2a1554a3d33ad8fc9397dd8afd7fff65fc9..a37b7e6c029bb654bcda9d41b26152afbea11cee 100644 |
| --- a/src/core/SkPathPriv.h |
| +++ b/src/core/SkPathPriv.h |
| @@ -98,6 +98,29 @@ public: |
| */ |
| static void CreateDrawArcPath(SkPath* path, const SkRect& oval, SkScalar startAngle, |
| SkScalar sweepAngle, bool useCenter, bool isFillNoPathEffect); |
| + |
| + /** |
| + * Returns a pointer to the verb data. Note that the verbs are stored backwards in memory and |
| + * thus the returned pointer is the last verb. |
| + */ |
| + static const uint8_t* VerbData(const SkPath& path) { |
| + return path.fPathRef->verbsMemBegin(); |
| + } |
| + |
|
robertphillips
2016/09/21 13:37:46
point -> pointer ?
bsalomon
2016/09/21 14:17:35
Done.
|
| + /** Returns a raw point to the path points */ |
| + static const SkPoint* PointData(const SkPath& path) { |
| + return path.fPathRef->points(); |
| + } |
| + |
| + /** Returns the number of conic weights in the path */ |
| + static int ConicWeightCnt(const SkPath& path) { |
| + return path.fPathRef->countWeights(); |
| + } |
| + |
|
robertphillips
2016/09/21 13:37:46
same here ?
bsalomon
2016/09/21 14:17:35
Done.
|
| + /** Returns a raw point to the path conic weights. */ |
| + static const SkScalar* ConicWeightData(const SkPath& path) { |
| + return path.fPathRef->conicWeights(); |
| + } |
| }; |
| #endif |