OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 | 7 |
8 #include "SkPathOpsDebug.h" | 8 #include "SkPathOpsDebug.h" |
9 #include "SkPath.h" | 9 #include "SkPath.h" |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 #include "SkOpAngle.h" | 102 #include "SkOpAngle.h" |
103 #include "SkOpSegment.h" | 103 #include "SkOpSegment.h" |
104 | 104 |
105 #if DEBUG_SORT | 105 #if DEBUG_SORT |
106 void SkOpAngle::debugLoop() const { | 106 void SkOpAngle::debugLoop() const { |
107 const SkOpAngle* first = this; | 107 const SkOpAngle* first = this; |
108 const SkOpAngle* next = this; | 108 const SkOpAngle* next = this; |
109 do { | 109 do { |
110 next->dumpOne(true); | 110 next->dumpOne(true); |
| 111 SkDebugf("\n"); |
111 next = next->fNext; | 112 next = next->fNext; |
112 } while (next && next != first); | 113 } while (next && next != first); |
113 } | 114 } |
114 #endif | 115 #endif |
115 | 116 |
116 #if DEBUG_ANGLE | 117 #if DEBUG_ANGLE |
117 void SkOpAngle::debugSameAs(const SkOpAngle* compare) const { | 118 void SkOpAngle::debugSameAs(const SkOpAngle* compare) const { |
118 SK_ALWAYSBREAK(fSegment == compare->fSegment); | 119 SK_ALWAYSBREAK(fSegment == compare->fSegment); |
119 const SkOpSpan& startSpan = fSegment->span(fStart); | 120 const SkOpSpan& startSpan = fSegment->span(fStart); |
120 const SkOpSpan& oStartSpan = fSegment->span(compare->fStart); | 121 const SkOpSpan& oStartSpan = fSegment->span(compare->fStart); |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 } | 557 } |
557 last = &span; | 558 last = &span; |
558 hasLoop |= last->fLoop; | 559 hasLoop |= last->fLoop; |
559 } | 560 } |
560 SK_ALWAYSBREAK(done == fDoneSpans); | 561 SK_ALWAYSBREAK(done == fDoneSpans); |
561 // if (fAngles.count() ) { | 562 // if (fAngles.count() ) { |
562 // fAngles.begin()->debugValidateLoop(); | 563 // fAngles.begin()->debugValidateLoop(); |
563 // } | 564 // } |
564 #endif | 565 #endif |
565 } | 566 } |
OLD | NEW |