diff options
author | Florin Malita <fmalita@chromium.org> | 2018-01-03 23:37:54 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-04 15:22:59 +0000 |
commit | e6345d90f8f9d975128de9890d26b1af1fedc524 (patch) | |
tree | 549f9ca28b341150208c3e38a779c5bc607bc60b /experimental/sksg/SkSGGeometryNode.cpp | |
parent | 9d44081e00f67361414935b82332df5754bddcaf (diff) |
[skotty,sksg] Add support for geometry merge
TBR=
Change-Id: Ia5edbfeae61779ead6031f6dd4e33794b3eefdc0
Reviewed-on: https://skia-review.googlesource.com/90382
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'experimental/sksg/SkSGGeometryNode.cpp')
-rw-r--r-- | experimental/sksg/SkSGGeometryNode.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/experimental/sksg/SkSGGeometryNode.cpp b/experimental/sksg/SkSGGeometryNode.cpp index 6ac7eda6a4..cbc0d558e2 100644 --- a/experimental/sksg/SkSGGeometryNode.cpp +++ b/experimental/sksg/SkSGGeometryNode.cpp @@ -7,6 +7,8 @@ #include "SkSGGeometryNode.h" +#include "SkPath.h" + namespace sksg { void GeometryNode::draw(SkCanvas* canvas, const SkPaint& paint) const { @@ -14,4 +16,9 @@ void GeometryNode::draw(SkCanvas* canvas, const SkPaint& paint) const { this->onDraw(canvas, paint); } +SkPath GeometryNode::asPath() const { + SkASSERT(!this->hasInval()); + return this->onAsPath(); +} + } // namespace sksg |