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

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 ignore-tests.txt 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..eded8d80b3af16382782db4e77de46313a08656c 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();
+ if (SkScalarNearlyZero(r.width()) && SkScalarNearlyZero(r.height())) {
bsalomon 2014/02/14 13:56:40 It's not obvious to me that this is the right chec
yunchao 2014/02/17 09:54:32 Hi Brian, SW rasterizer check the bounds in some c
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