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 #include "SkFloatBits.h" | 7 #include "SkFloatBits.h" |
8 #include "SkOpCoincidence.h" | 8 #include "SkOpCoincidence.h" |
9 #include "SkPathOpsTypes.h" | 9 #include "SkPathOpsTypes.h" |
10 | 10 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 SkOpGlobalState::SkOpGlobalState(SkOpCoincidence* coincidence, SkOpContourHead*
head | 203 SkOpGlobalState::SkOpGlobalState(SkOpCoincidence* coincidence, SkOpContourHead*
head |
204 SkDEBUGPARAMS(const char* testName)) | 204 SkDEBUGPARAMS(const char* testName)) |
205 : fCoincidence(coincidence) | 205 : fCoincidence(coincidence) |
206 , fContourHead(head) | 206 , fContourHead(head) |
207 , fNested(0) | 207 , fNested(0) |
208 , fWindingFailed(false) | 208 , fWindingFailed(false) |
209 , fAngleCoincidence(false) | 209 , fAngleCoincidence(false) |
210 , fPhase(kIntersecting) | 210 , fPhase(kIntersecting) |
211 SkDEBUGPARAMS(fDebugTestName(testName)) | 211 SkDEBUGPARAMS(fDebugTestName(testName)) |
212 SkDEBUGPARAMS(fAngleID(0)) | 212 SkDEBUGPARAMS(fAngleID(0)) |
| 213 SkDEBUGPARAMS(fCoinID(0)) |
213 SkDEBUGPARAMS(fContourID(0)) | 214 SkDEBUGPARAMS(fContourID(0)) |
214 SkDEBUGPARAMS(fPtTID(0)) | 215 SkDEBUGPARAMS(fPtTID(0)) |
215 SkDEBUGPARAMS(fSegmentID(0)) | 216 SkDEBUGPARAMS(fSegmentID(0)) |
216 SkDEBUGPARAMS(fSpanID(0)) { | 217 SkDEBUGPARAMS(fSpanID(0)) { |
217 if (coincidence) { | 218 if (coincidence) { |
218 coincidence->debugSetGlobalState(this); | 219 coincidence->debugSetGlobalState(this); |
219 } | 220 } |
| 221 #if DEBUG_T_SECT_LOOP_COUNT |
| 222 debugResetLoopCounts(); |
| 223 #endif |
220 } | 224 } |
221 | 225 |
OLD | NEW |