| 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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 const SkOpSpan* next = this; | 397 const SkOpSpan* next = this; |
| 398 while ((next = next->fCoincident) != this) { | 398 while ((next = next->fCoincident) != this) { |
| 399 if (next == coin) { | 399 if (next == coin) { |
| 400 return true; | 400 return true; |
| 401 } | 401 } |
| 402 } | 402 } |
| 403 return false; | 403 return false; |
| 404 } | 404 } |
| 405 | 405 |
| 406 bool debugCoinLoopCheck() const; | 406 bool debugCoinLoopCheck() const; |
| 407 void detach(SkOpPtT* ); | 407 void release(SkOpPtT* ); |
| 408 | 408 |
| 409 bool done() const { | 409 bool done() const { |
| 410 SkASSERT(!final()); | 410 SkASSERT(!final()); |
| 411 return fDone; | 411 return fDone; |
| 412 } | 412 } |
| 413 | 413 |
| 414 void dumpCoin() const; | 414 void dumpCoin() const; |
| 415 bool dumpSpan() const; | 415 bool dumpSpan() const; |
| 416 void init(SkOpSegment* parent, SkOpSpan* prev, double t, const SkPoint& pt); | 416 void init(SkOpSegment* parent, SkOpSpan* prev, double t, const SkPoint& pt); |
| 417 | 417 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 511 int fWindSum; // accumulated from contours surrounding this one. | 511 int fWindSum; // accumulated from contours surrounding this one. |
| 512 int fOppSum; // for binary operators: the opposite winding sum | 512 int fOppSum; // for binary operators: the opposite winding sum |
| 513 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident | 513 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident |
| 514 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v
alue goes here | 514 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v
alue goes here |
| 515 int fTopTTry; // specifies direction and t value to try next | 515 int fTopTTry; // specifies direction and t value to try next |
| 516 bool fDone; // if set, this span to next higher T has been processed | 516 bool fDone; // if set, this span to next higher T has been processed |
| 517 mutable bool fAlreadyAdded; | 517 mutable bool fAlreadyAdded; |
| 518 }; | 518 }; |
| 519 | 519 |
| 520 #endif | 520 #endif |
| OLD | NEW |