OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #ifndef SkOpSegment_DEFINE | 7 #ifndef SkOpSegment_DEFINE |
8 #define SkOpSegment_DEFINE | 8 #define SkOpSegment_DEFINE |
9 | 9 |
10 #include "SkOpAngle.h" | 10 #include "SkOpAngle.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 void debugShowActiveSpans() const; | 159 void debugShowActiveSpans() const; |
160 #endif | 160 #endif |
161 #if DEBUG_MARK_DONE | 161 #if DEBUG_MARK_DONE |
162 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding)
; | 162 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding)
; |
163 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding,
int oppWinding); | 163 void debugShowNewWinding(const char* fun, const SkOpSpan* span, int winding,
int oppWinding); |
164 #endif | 164 #endif |
165 | 165 |
166 const SkOpSpanBase* debugSpan(int id) const; | 166 const SkOpSpanBase* debugSpan(int id) const; |
167 void debugValidate() const; | 167 void debugValidate() const; |
168 | 168 |
| 169 #if DEBUG_COINCIDENCE_ORDER |
| 170 void debugResetCoinT() const; |
| 171 void debugSetCoinT(int, SkScalar ) const; |
| 172 #endif |
| 173 |
169 #if DEBUG_COINCIDENCE | 174 #if DEBUG_COINCIDENCE |
170 static void SkOpSegment::DebugClearVisited(const SkOpSpanBase* span); | 175 static void DebugClearVisited(const SkOpSpanBase* span); |
171 | 176 |
172 bool debugVisited() const { | 177 bool debugVisited() const { |
173 if (!fDebugVisited) { | 178 if (!fDebugVisited) { |
174 fDebugVisited = true; | 179 fDebugVisited = true; |
175 return false; | 180 return false; |
176 } | 181 } |
177 return true; | 182 return true; |
178 } | 183 } |
179 #endif | 184 #endif |
180 | 185 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 SkPoint* fPts; // pointer into array of points owned by edge builder that m
ay be tweaked | 434 SkPoint* fPts; // pointer into array of points owned by edge builder that m
ay be tweaked |
430 SkPathOpsBounds fBounds; // tight bounds | 435 SkPathOpsBounds fBounds; // tight bounds |
431 SkScalar fWeight; | 436 SkScalar fWeight; |
432 int fCount; // number of spans (one for a non-intersecting segment) | 437 int fCount; // number of spans (one for a non-intersecting segment) |
433 int fDoneCount; // number of processed spans (zero initially) | 438 int fDoneCount; // number of processed spans (zero initially) |
434 SkPath::Verb fVerb; | 439 SkPath::Verb fVerb; |
435 bool fVisited; // used by missing coincidence check | 440 bool fVisited; // used by missing coincidence check |
436 #if DEBUG_COINCIDENCE | 441 #if DEBUG_COINCIDENCE |
437 mutable bool fDebugVisited; // used by debug missing coincidence check | 442 mutable bool fDebugVisited; // used by debug missing coincidence check |
438 #endif | 443 #endif |
| 444 #if DEBUG_COINCIDENCE_ORDER |
| 445 mutable int fDebugBaseIndex; |
| 446 mutable SkScalar fDebugBaseMin; // if > 0, the 1st t value in this seg vis-
a-vis the ref seg |
| 447 mutable SkScalar fDebugBaseMax; |
| 448 mutable int fDebugLastIndex; |
| 449 mutable SkScalar fDebugLastMin; // if > 0, the last t -- next t val - base
has same sign |
| 450 mutable SkScalar fDebugLastMax; |
| 451 #endif |
439 SkDEBUGCODE(int fID); | 452 SkDEBUGCODE(int fID); |
440 }; | 453 }; |
441 | 454 |
442 #endif | 455 #endif |
OLD | NEW |