| 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 #ifndef SkOpCoincidence_DEFINED | 7 #ifndef SkOpCoincidence_DEFINED |
| 8 #define SkOpCoincidence_DEFINED | 8 #define SkOpCoincidence_DEFINED |
| 9 | 9 |
| 10 #include "SkTDArray.h" | 10 #include "SkTDArray.h" |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 ptT->setCoincident(); | 88 ptT->setCoincident(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void setEnds(const SkOpPtT* coinPtTEnd, const SkOpPtT* oppPtTEnd) { | 91 void setEnds(const SkOpPtT* coinPtTEnd, const SkOpPtT* oppPtTEnd) { |
| 92 this->setCoinPtTEnd(coinPtTEnd); | 92 this->setCoinPtTEnd(coinPtTEnd); |
| 93 this->setOppPtTEnd(oppPtTEnd); | 93 this->setOppPtTEnd(oppPtTEnd); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void setOppPtTEnd(const SkOpPtT* ptT) { | 96 void setOppPtTEnd(const SkOpPtT* ptT) { |
| 97 SkOPASSERT(ptT == ptT->span()->ptT()); | 97 SkOPASSERT(ptT == ptT->span()->ptT()); |
| 98 SkASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT); | 98 SkOPASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT); |
| 99 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment()); | 99 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment()); |
| 100 fOppPtTEnd = ptT; | 100 fOppPtTEnd = ptT; |
| 101 ptT->setCoincident(); | 101 ptT->setCoincident(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 void setOppPtTStart(const SkOpPtT* ptT) { | 104 void setOppPtTStart(const SkOpPtT* ptT) { |
| 105 SkASSERT(ptT == ptT->span()->ptT()); | 105 SkASSERT(ptT == ptT->span()->ptT()); |
| 106 SkASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT); | 106 SkASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT); |
| 107 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment()); | 107 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment()); |
| 108 fOppPtTStart = ptT; | 108 fOppPtTStart = ptT; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 SkCoincidentSpans* fTop; | 302 SkCoincidentSpans* fTop; |
| 303 SkOpGlobalState* fGlobalState; | 303 SkOpGlobalState* fGlobalState; |
| 304 bool fContinue; | 304 bool fContinue; |
| 305 bool fSpanDeleted; | 305 bool fSpanDeleted; |
| 306 bool fPtAllocated; | 306 bool fPtAllocated; |
| 307 bool fCoinExtended; | 307 bool fCoinExtended; |
| 308 bool fSpanMerged; | 308 bool fSpanMerged; |
| 309 }; | 309 }; |
| 310 | 310 |
| 311 #endif | 311 #endif |
| OLD | NEW |