diff options
author | fmalita <fmalita@chromium.org> | 2016-08-12 12:15:33 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-12 12:15:33 -0700 |
commit | 5b31f321fcc3bb7f2ed7cf31ff4b03901228594b (patch) | |
tree | f3c65b2e0db3a9d36c448296e745d72832fe6034 /experimental/svg/model/SkSVGTypes.h | |
parent | 3602d4f16a01da860d16eb36fb52eb62487495cc (diff) |
[SVGDom] <polygon> & <polyline> support
R=robertphillips@google.com,stephana@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2235273003
Review-Url: https://codereview.chromium.org/2235273003
Diffstat (limited to 'experimental/svg/model/SkSVGTypes.h')
-rw-r--r-- | experimental/svg/model/SkSVGTypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/experimental/svg/model/SkSVGTypes.h b/experimental/svg/model/SkSVGTypes.h index c8330e1088..18ec3ce3cf 100644 --- a/experimental/svg/model/SkSVGTypes.h +++ b/experimental/svg/model/SkSVGTypes.h @@ -10,8 +10,10 @@ #include "SkColor.h" #include "SkMatrix.h" +#include "SkPoint.h" #include "SkRect.h" #include "SkScalar.h" +#include "SkTDArray.h" #include "SkTypes.h" template <typename T> @@ -22,6 +24,7 @@ public: SkSVGPrimitiveTypeWrapper(const SkSVGPrimitiveTypeWrapper&) = default; SkSVGPrimitiveTypeWrapper& operator=(const SkSVGPrimitiveTypeWrapper&) = default; + SkSVGPrimitiveTypeWrapper& operator=(const T& v) { fValue = v; return *this; } bool operator==(const SkSVGPrimitiveTypeWrapper<T>& other) const { return fValue == other.fValue; @@ -41,6 +44,7 @@ using SkSVGColorType = SkSVGPrimitiveTypeWrapper<SkColor >; using SkSVGNumberType = SkSVGPrimitiveTypeWrapper<SkScalar>; using SkSVGViewBoxType = SkSVGPrimitiveTypeWrapper<SkRect >; using SkSVGTransformType = SkSVGPrimitiveTypeWrapper<SkMatrix>; +using SkSVGPointsType = SkSVGPrimitiveTypeWrapper<SkTDArray<SkPoint>>; class SkSVGLength { public: |