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

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: update code according to Brian's proposal 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 ed8274dc5d3b4a9bf09d6241541620b1a11f9a4f..0ebebaa13bea0fa76164a65c338e94408905c420 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -1737,7 +1737,9 @@ void SkCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
return;
}
}
- if (path.isEmpty()) {
+
+ SkRect r = path.getBounds();
bsalomon 2014/02/18 17:58:11 const SkRect& ?
yunchao 2014/02/19 01:36:59 Done.
+ if (r.width() <= 0 && r.height() <= 0) {
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