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

Unified Diff: src/core/SkCanvas.cpp

Issue 166023002: fix the visual difference of raster vs gpu -- inverse_paths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase code Created 6 years, 10 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 | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCanvas.cpp
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 93dc14bd1e5e6700c7b2bef784255dc86b4fff90..5a0821144af66047a6f17e4435526432077e0983 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -1746,7 +1746,9 @@ void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
return;
}
}
- if (path.isEmpty()) {
+
+ const SkRect& r = path.getBounds();
+ if (r.width() <= 0 && r.height() <= 0) {
reed2 2014/02/21 10:48:49 Do we have unit-tests added to exercise this? Does
yunchao 2014/02/24 03:07:20 Hi Mike, Do you think we need to add a unit-tests
if (path.isInverseFillType()) {
this->internalDrawPaint(paint);
}
« no previous file with comments | « expectations/gm/ignored-tests.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698