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

Unified Diff: src/pathops/SkPathOpsTypes.h

Issue 1129193006: fix winding for path ops builder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix compile bug 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/SkPathOpsSimplify.cpp ('k') | src/pathops/SkPathOpsWinding.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pathops/SkPathOpsTypes.h
diff --git a/src/pathops/SkPathOpsTypes.h b/src/pathops/SkPathOpsTypes.h
index 845288f60937db87ba28530ced00037619a0619a..a780a88c6de48f773c5ccbcc945d0626dca0d7b2 100644
--- a/src/pathops/SkPathOpsTypes.h
+++ b/src/pathops/SkPathOpsTypes.h
@@ -33,9 +33,7 @@ public:
, fContourHead(head)
, fWindingFailed(false)
, fAngleCoincidence(false)
-#if DEBUG_VALIDATE
, fPhase(kIntersecting)
-#endif
SkDEBUGPARAMS(fAngleID(0))
SkDEBUGPARAMS(fContourID(0))
SkDEBUGPARAMS(fPtTID(0))
@@ -43,12 +41,11 @@ public:
SkDEBUGPARAMS(fSpanID(0)) {
}
-#if DEBUG_VALIDATE
enum Phase {
kIntersecting,
- kWalking
+ kWalking,
+ kFixWinding,
};
-#endif
enum {
kMaxWindingTries = 10
@@ -93,11 +90,9 @@ public:
}
#endif
-#if DEBUG_VALIDATE
Phase phase() const {
return fPhase;
}
-#endif
void setAngleCoincidence() {
fAngleCoincidence = true;
@@ -107,12 +102,10 @@ public:
fContourHead = contourHead;
}
-#if DEBUG_VALIDATE
void setPhase(Phase phase) {
SkASSERT(fPhase != phase);
fPhase = phase;
}
-#endif
// called in very rare cases where angles are sorted incorrectly -- signfies op will fail
void setWindingFailed() {
@@ -128,9 +121,7 @@ private:
SkOpContourHead* fContourHead;
bool fWindingFailed;
bool fAngleCoincidence;
-#if DEBUG_VALIDATE
Phase fPhase;
-#endif
#ifdef SK_DEBUG
int fAngleID;
int fContourID;
« no previous file with comments | « src/pathops/SkPathOpsSimplify.cpp ('k') | src/pathops/SkPathOpsWinding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698