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
diff --git a/src/core/SkRemote.cpp b/src/core/SkRemote.cpp
index 0c4bb21..1e86044a 100644
--- a/src/core/SkRemote.cpp
+++ b/src/core/SkRemote.cpp
@@ -236,7 +236,9 @@
}
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,