SkRemote: impl drawPaint()

Review URL: https://codereview.chromium.org/1409253003
This commit is contained in:
halcanary 2015-10-17 06:11:52 -07:00 committed by Commit bot
parent 56f152b53f
commit 1ed348aea3
2 changed files with 5 additions and 0 deletions

View File

@ -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) { void Client::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle) {
SkPath path; SkPath path;
path.addRect(rect); path.addRect(rect);

View File

@ -95,6 +95,7 @@ namespace SkRemote {
void onDrawOval(const SkRect&, const SkPaint&) override; void onDrawOval(const SkRect&, const SkPaint&) override;
void onDrawPath(const SkPath&, const SkPaint&) override; void onDrawPath(const SkPath&, const SkPaint&) override;
void onDrawRect(const SkRect&, const SkPaint&) override; void onDrawRect(const SkRect&, const SkPaint&) override;
void onDrawPaint(const SkPaint&) override;
Cache* fCache; Cache* fCache;
Encoder* fEncoder; Encoder* fEncoder;