| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void setCoinPtTEnd(const SkOpPtT* ptT) { | 74 void setCoinPtTEnd(const SkOpPtT* ptT) { |
| 75 SkOPASSERT(ptT == ptT->span()->ptT()); | 75 SkOPASSERT(ptT == ptT->span()->ptT()); |
| 76 SkASSERT(!fCoinPtTStart || ptT->fT != fCoinPtTStart->fT); | 76 SkASSERT(!fCoinPtTStart || ptT->fT != fCoinPtTStart->fT); |
| 77 SkASSERT(!fCoinPtTStart || fCoinPtTStart->segment() == ptT->segment()); | 77 SkASSERT(!fCoinPtTStart || fCoinPtTStart->segment() == ptT->segment()); |
| 78 fCoinPtTEnd = ptT; | 78 fCoinPtTEnd = ptT; |
| 79 ptT->setCoincident(); | 79 ptT->setCoincident(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void setCoinPtTStart(const SkOpPtT* ptT) { | 82 void setCoinPtTStart(const SkOpPtT* ptT) { |
| 83 SkASSERT(ptT == ptT->span()->ptT()); | 83 SkASSERT(ptT == ptT->span()->ptT()); |
| 84 SkASSERT(!fCoinPtTEnd || ptT->fT != fCoinPtTEnd->fT); | 84 SkOPASSERT(!fCoinPtTEnd || ptT->fT != fCoinPtTEnd->fT); |
| 85 SkASSERT(!fCoinPtTEnd || fCoinPtTEnd->segment() == ptT->segment()); | 85 SkASSERT(!fCoinPtTEnd || fCoinPtTEnd->segment() == ptT->segment()); |
| 86 fCoinPtTStart = ptT; | 86 fCoinPtTStart = ptT; |
| 87 ptT->setCoincident(); | 87 ptT->setCoincident(); |
| 88 } | 88 } |
| 89 | 89 |
| 90 void setEnds(const SkOpPtT* coinPtTEnd, const SkOpPtT* oppPtTEnd) { | 90 void setEnds(const SkOpPtT* coinPtTEnd, const SkOpPtT* oppPtTEnd) { |
| 91 this->setCoinPtTEnd(coinPtTEnd); | 91 this->setCoinPtTEnd(coinPtTEnd); |
| 92 this->setOppPtTEnd(oppPtTEnd); | 92 this->setOppPtTEnd(oppPtTEnd); |
| 93 } | 93 } |
| 94 | 94 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 SkCoincidentSpans* fTop; | 304 SkCoincidentSpans* fTop; |
| 305 SkOpGlobalState* fGlobalState; | 305 SkOpGlobalState* fGlobalState; |
| 306 bool fContinue; | 306 bool fContinue; |
| 307 bool fSpanDeleted; | 307 bool fSpanDeleted; |
| 308 bool fPtAllocated; | 308 bool fPtAllocated; |
| 309 bool fCoinExtended; | 309 bool fCoinExtended; |
| 310 bool fSpanMerged; | 310 bool fSpanMerged; |
| 311 }; | 311 }; |
| 312 | 312 |
| 313 #endif | 313 #endif |
| OLD | NEW |