diff options
author | 2015-10-17 06:11:52 -0700 | |
---|---|---|
committer | 2015-10-17 06:11:52 -0700 | |
commit | 1ed348aea37e34dd0ad3bde33cd28bcbd1c2a587 (patch) | |
tree | d5872f7013e718071325977800b2d1a0f798d037 | |
parent | 56f152b53f911b578e305d3461fb001585984a67 (diff) |
SkRemote: impl drawPaint()
Review URL: https://codereview.chromium.org/1409253003
-rw-r--r-- | src/core/SkRemote.cpp | 4 | ||||
-rw-r--r-- | src/core/SkRemote.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkRemote.cpp b/src/core/SkRemote.cpp index 20f4c89890..d3da1d2bfa 100644 --- a/src/core/SkRemote.cpp +++ b/src/core/SkRemote.cpp @@ -220,6 +220,10 @@ namespace SkRemote { } } + void Client::onDrawPaint(const SkPaint& paint) { + this->onDrawRect(SkRect::MakeLargest(), paint); + } + void Client::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle) { SkPath path; path.addRect(rect); diff --git a/src/core/SkRemote.h b/src/core/SkRemote.h index 3bbb3b793a..bd86193a20 100644 --- a/src/core/SkRemote.h +++ b/src/core/SkRemote.h @@ -95,6 +95,7 @@ namespace SkRemote { void onDrawOval(const SkRect&, const SkPaint&) override; void onDrawPath(const SkPath&, const SkPaint&) override; void onDrawRect(const SkRect&, const SkPaint&) override; + void onDrawPaint(const SkPaint&) override; Cache* fCache; Encoder* fEncoder; |