diff options
author | halcanary <halcanary@google.com> | 2015-10-17 15:18:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-17 15:18:35 -0700 |
commit | 5bce23c33a367d0a3c18b6b0c6998668a5c71db7 (patch) | |
tree | b077776bd34f6516376e40e4157a9351ec415a58 /src/core | |
parent | ff8b3f0f652fd1c1ae8b88eda2478d16d6ab6c37 (diff) |
SkRemote: impl onDrawDRRect
Review URL: https://codereview.chromium.org/1410223002
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/SkRemote.cpp | 9 | ||||
-rw-r--r-- | src/core/SkRemote.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/SkRemote.cpp b/src/core/SkRemote.cpp index d3da1d2bfa..4f2714fa24 100644 --- a/src/core/SkRemote.cpp +++ b/src/core/SkRemote.cpp @@ -207,6 +207,15 @@ namespace SkRemote { this->onDrawPath(path, paint); } + void Client::onDrawDRRect(const SkRRect& outside, + const SkRRect& inside, + const SkPaint& paint) { + SkPath path; + path.addRRect(outside); + path.addRRect(inside, SkPath::kCCW_Direction); + this->onDrawPath(path, paint); + } + void Client::onDrawPath(const SkPath& path, const SkPaint& paint) { LookupScope ls(fCache, fEncoder); ID p = ls.lookup(path), diff --git a/src/core/SkRemote.h b/src/core/SkRemote.h index bd86193a20..53246442d4 100644 --- a/src/core/SkRemote.h +++ b/src/core/SkRemote.h @@ -93,6 +93,7 @@ namespace SkRemote { void onClipRect (const SkRect&, SkRegion::Op, ClipEdgeStyle) override; void onDrawOval(const SkRect&, const SkPaint&) override; + void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; void onDrawPath(const SkPath&, const SkPaint&) override; void onDrawRect(const SkRect&, const SkPaint&) override; void onDrawPaint(const SkPaint&) override; |