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

Unified Diff: src/pathops/SkPathOpsDebug.cpp

Issue 1140383002: fix builder winding again (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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/SkOpBuilder.cpp ('k') | src/pathops/SkPathOpsTypes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkPathOpsDebug.cpp
diff --git a/src/pathops/SkPathOpsDebug.cpp b/src/pathops/SkPathOpsDebug.cpp
index d28dc7292480e0d83738866d112244d4ea2895ae..627a7c9f4023ef81a182505d7538d30abd25f2e5 100644
--- a/src/pathops/SkPathOpsDebug.cpp
+++ b/src/pathops/SkPathOpsDebug.cpp
@@ -547,7 +547,9 @@ int SkOpPtT::debugLoopLimit(bool report) const {
void SkOpPtT::debugValidate() const {
#if DEBUG_VALIDATE
- if (contour()->globalState()->phase() == SkOpGlobalState::kIntersecting) {
+ SkOpGlobalState::Phase phase = contour()->globalState()->phase();
+ if (phase == SkOpGlobalState::kIntersecting
+ || phase == SkOpGlobalState::kFixWinding) {
return;
}
SkASSERT(fNext);
« no previous file with comments | « src/pathops/SkOpBuilder.cpp ('k') | src/pathops/SkPathOpsTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698