diff options
Diffstat (limited to 'experimental/skotty/SkottyProperties.h')
-rw-r--r-- | experimental/skotty/SkottyProperties.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/experimental/skotty/SkottyProperties.h b/experimental/skotty/SkottyProperties.h index e1504747b4..990862f195 100644 --- a/experimental/skotty/SkottyProperties.h +++ b/experimental/skotty/SkottyProperties.h @@ -8,6 +8,7 @@ #ifndef SkottyProperties_DEFINED #define SkottyProperties_DEFINED +#include "SkPath.h" #include "SkPoint.h" #include "SkSize.h" #include "SkottyPriv.h" @@ -27,12 +28,6 @@ class Transform; namespace skotty { -struct BezierVertex { - SkPoint fInPoint, // "in" control point, relative to the vertex - fOutPoint, // "out" control point, relative to the vertex - fVertex; -}; - struct ScalarValue { float fVal; @@ -73,8 +68,7 @@ struct VectorValue { }; struct ShapeValue { - SkTArray<BezierVertex, true> fVertices; - bool fClose = false; + SkPath fPath; ShapeValue() = default; ShapeValue(const ShapeValue&) = delete; @@ -83,7 +77,7 @@ struct ShapeValue { static bool Parse(const Json::Value&, ShapeValue*); - size_t cardinality() const { return SkTo<size_t>(fVertices.count()); } + size_t cardinality() const { return SkTo<size_t>(fPath.countVerbs()); } template <typename T> T as() const; |