diff options
author | fmalita <fmalita@chromium.org> | 2016-09-13 12:56:11 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-13 12:56:11 -0700 |
commit | cecd617a4297ffdcec632ca7e2ed1e6b61665e04 (patch) | |
tree | 48e32288114528e7085bf6aa0190653e7ad0bf99 /experimental/svg/model/SkSVGLinearGradient.h | |
parent | 649985a530c39afcda23d1f188fa2fc92df3ac56 (diff) |
[SVGDom] Linear gradient 'spreadMethod' support
R=stephana@google.com,robertphillips@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2337203002
Review-Url: https://codereview.chromium.org/2337203002
Diffstat (limited to 'experimental/svg/model/SkSVGLinearGradient.h')
-rw-r--r-- | experimental/svg/model/SkSVGLinearGradient.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/experimental/svg/model/SkSVGLinearGradient.h b/experimental/svg/model/SkSVGLinearGradient.h index 1a2e332baf..e12b5245e8 100644 --- a/experimental/svg/model/SkSVGLinearGradient.h +++ b/experimental/svg/model/SkSVGLinearGradient.h @@ -19,6 +19,7 @@ public: } void setHref(const SkSVGStringType&); + void setSpreadMethod(const SkSVGSpreadMethod&); void setX1(const SkSVGLength&); void setY1(const SkSVGLength&); void setX2(const SkSVGLength&); @@ -41,7 +42,8 @@ private: SkSVGLength fX2 = SkSVGLength(100, SkSVGLength::Unit::kPercentage); SkSVGLength fY2 = SkSVGLength(0 , SkSVGLength::Unit::kPercentage); - SkSVGStringType fHref; + SkSVGStringType fHref; + SkSVGSpreadMethod fSpreadMethod = SkSVGSpreadMethod(SkSVGSpreadMethod::Type::kPad); typedef SkSVGHiddenContainer INHERITED; }; |