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 SkOpSpan_DEFINED | 7 #ifndef SkOpSpan_DEFINED |
8 #define SkOpSpan_DEFINED | 8 #define SkOpSpan_DEFINED |
9 | 9 |
10 #include "SkPathOpsDebug.h" | 10 #include "SkPathOpsDebug.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 int debugID() const { | 51 int debugID() const { |
52 return SkDEBUGRELEASE(fID, -1); | 52 return SkDEBUGRELEASE(fID, -1); |
53 } | 53 } |
54 | 54 |
55 void debugAddOpp(const SkOpPtT* opp, const SkOpPtT* oppPrev) const; | 55 void debugAddOpp(const SkOpPtT* opp, const SkOpPtT* oppPrev) const; |
56 const SkOpAngle* debugAngle(int id) const; | 56 const SkOpAngle* debugAngle(int id) const; |
57 const SkOpCoincidence* debugCoincidence() const; | 57 const SkOpCoincidence* debugCoincidence() const; |
58 bool debugContains(const SkOpPtT* ) const; | 58 bool debugContains(const SkOpPtT* ) const; |
59 const SkOpPtT* debugContains(const SkOpSegment* check) const; | 59 const SkOpPtT* debugContains(const SkOpSegment* check) const; |
60 SkOpContour* debugContour(int id) const; | 60 SkOpContour* debugContour(int id) const; |
| 61 const SkOpPtT* debugEnder(const SkOpPtT* end) const; |
61 int debugLoopLimit(bool report) const; | 62 int debugLoopLimit(bool report) const; |
62 bool debugMatchID(int id) const; | 63 bool debugMatchID(int id) const; |
63 const SkOpPtT* debugOppPrev(const SkOpPtT* opp) const; | 64 const SkOpPtT* debugOppPrev(const SkOpPtT* opp) const; |
64 const SkOpPtT* debugPtT(int id) const; | 65 const SkOpPtT* debugPtT(int id) const; |
65 void debugResetCoinT() const; | 66 void debugResetCoinT() const; |
66 const SkOpSegment* debugSegment(int id) const; | 67 const SkOpSegment* debugSegment(int id) const; |
67 void debugSetCoinT(int ) const; | 68 void debugSetCoinT(int ) const; |
68 const SkOpSpanBase* debugSpan(int id) const; | 69 const SkOpSpanBase* debugSpan(int id) const; |
69 void debugValidate() const; | 70 void debugValidate() const; |
70 | 71 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 int fWindSum; // accumulated from contours surrounding this one. | 567 int fWindSum; // accumulated from contours surrounding this one. |
567 int fOppSum; // for binary operators: the opposite winding sum | 568 int fOppSum; // for binary operators: the opposite winding sum |
568 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident | 569 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident |
569 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v
alue goes here | 570 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v
alue goes here |
570 int fTopTTry; // specifies direction and t value to try next | 571 int fTopTTry; // specifies direction and t value to try next |
571 bool fDone; // if set, this span to next higher T has been processed | 572 bool fDone; // if set, this span to next higher T has been processed |
572 mutable bool fAlreadyAdded; | 573 mutable bool fAlreadyAdded; |
573 }; | 574 }; |
574 | 575 |
575 #endif | 576 #endif |
OLD | NEW |