Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: src/core/SkRemote.cpp

Issue 1411303002: SkRemote: DrawPaint is an inverse empty path. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRemote.cpp
diff --git a/src/core/SkRemote.cpp b/src/core/SkRemote.cpp
index 0c4bb2160eb0474465914441c31918558e0618eb..1e86044a544a42aae14ed8cbb287ba9b27b9cf6d 100644
--- a/src/core/SkRemote.cpp
+++ b/src/core/SkRemote.cpp
@@ -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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698