| 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 void setNext(SkOpSpanBase* nextT) { | 511 void setNext(SkOpSpanBase* nextT) { |
| 512 SkASSERT(!final()); | 512 SkASSERT(!final()); |
| 513 fNext = nextT; | 513 fNext = nextT; |
| 514 } | 514 } |
| 515 | 515 |
| 516 void setOppSum(int oppSum); | 516 void setOppSum(int oppSum); |
| 517 | 517 |
| 518 void setOppValue(int oppValue) { | 518 void setOppValue(int oppValue) { |
| 519 SkASSERT(!final()); | 519 SkASSERT(!final()); |
| 520 SkASSERT(fOppSum == SK_MinS32); | 520 SkASSERT(fOppSum == SK_MinS32); |
| 521 SkASSERT(!oppValue || !fDone); | 521 SkOPASSERT(!oppValue || !fDone); |
| 522 fOppValue = oppValue; | 522 fOppValue = oppValue; |
| 523 } | 523 } |
| 524 | 524 |
| 525 void setToAngle(SkOpAngle* angle) { | 525 void setToAngle(SkOpAngle* angle) { |
| 526 SkASSERT(!final()); | 526 SkASSERT(!final()); |
| 527 fToAngle = angle; | 527 fToAngle = angle; |
| 528 } | 528 } |
| 529 | 529 |
| 530 void setWindSum(int windSum); | 530 void setWindSum(int windSum); |
| 531 | 531 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 561 int fWindSum; // accumulated from contours surrounding this one. | 561 int fWindSum; // accumulated from contours surrounding this one. |
| 562 int fOppSum; // for binary operators: the opposite winding sum | 562 int fOppSum; // for binary operators: the opposite winding sum |
| 563 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident | 563 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident |
| 564 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v
alue goes here | 564 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v
alue goes here |
| 565 int fTopTTry; // specifies direction and t value to try next | 565 int fTopTTry; // specifies direction and t value to try next |
| 566 bool fDone; // if set, this span to next higher T has been processed | 566 bool fDone; // if set, this span to next higher T has been processed |
| 567 mutable bool fAlreadyAdded; | 567 mutable bool fAlreadyAdded; |
| 568 }; | 568 }; |
| 569 | 569 |
| 570 #endif | 570 #endif |
| OLD | NEW |