From 44d85d1748baf6fe61641673a55509af7def1886 Mon Sep 17 00:00:00 2001 From: halcanary Date: Sun, 18 Oct 2015 05:12:58 -0700 Subject: [PATCH] SkRemote: impl drawRRect Review URL: https://codereview.chromium.org/1412013002 --- src/core/SkRemote.cpp | 6 ++++++ src/core/SkRemote.h | 1 + 2 files changed, 7 insertions(+) diff --git a/src/core/SkRemote.cpp b/src/core/SkRemote.cpp index 23f3741711..0c4bb2160e 100644 --- a/src/core/SkRemote.cpp +++ b/src/core/SkRemote.cpp @@ -207,6 +207,12 @@ namespace SkRemote { this->onDrawPath(path, paint); } + void Client::onDrawRRect(const SkRRect& rrect, const SkPaint& paint) { + SkPath path; + path.addRRect(rrect); + this->onDrawPath(path, paint); + } + void Client::onDrawDRRect(const SkRRect& outside, const SkRRect& inside, const SkPaint& paint) { diff --git a/src/core/SkRemote.h b/src/core/SkRemote.h index fa62daddda..72914d4382 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 onDrawRRect(const SkRRect&, 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;