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

Unified Diff: src/pathops/SkPathOpsSimplify.cpp

Issue 1394503003: fix some pathops bugs found in 1M skps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init to avoid warning 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 | « src/pathops/SkPathOpsOp.cpp ('k') | src/pathops/SkPathOpsTSect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkPathOpsSimplify.cpp
diff --git a/src/pathops/SkPathOpsSimplify.cpp b/src/pathops/SkPathOpsSimplify.cpp
index 14fde4f9a4d4a81eddcc504afc412e552f4e4ad9..34b19d1fe2a0e73b74cbb12f19d75c6699f0a542 100644
--- a/src/pathops/SkPathOpsSimplify.cpp
+++ b/src/pathops/SkPathOpsSimplify.cpp
@@ -176,7 +176,7 @@ bool Simplify(const SkPath& path, SkPath* result) {
return false;
}
#if DEBUG_DUMP_SEGMENTS
- contour.dumpSegments((SkPathOp) -1);
+ contour.dumpSegments();
#endif
if (!SortContourList(&contourList, false, false)) {
result->reset();
@@ -196,6 +196,9 @@ bool Simplify(const SkPath& path, SkPath* result) {
if (!HandleCoincidence(contourList, &coincidence, &allocator)) {
return false;
}
+#if DEBUG_DUMP_ALIGNMENT
+ contour.dumpSegments("aligned");
+#endif
// construct closed contours
result->reset();
result->setFillType(fillType);
« no previous file with comments | « src/pathops/SkPathOpsOp.cpp ('k') | src/pathops/SkPathOpsTSect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698