SkRemote: DrawPaint is an inverse empty path.

Drawing with SkRect::MakeLargest() isn't actually working.

This appears to work correctly, and even be correct.
(It's a case explicitly handled by SkCanvas::onDrawPath).

BUG=skia:

Review URL: https://codereview.chromium.org/1411303002
This commit is contained in:
mtklein 2015-10-19 10:41:15 -07:00 committed by Commit bot
parent 2fc11d39d1
commit 1df5fab385

View File

@ -236,7 +236,9 @@ namespace SkRemote {
}
void Client::onDrawPaint(const SkPaint& paint) {
this->onDrawRect(SkRect::MakeLargest(), paint);
SkPath path;
path.setFillType(SkPath::kInverseWinding_FillType); // Either inverse FillType works fine.
this->onDrawPath(path, paint);
}
void Client::onDrawText(const void* text, size_t byteLength, SkScalar x,