| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void setOppPtTEnd(const SkOpPtT* ptT) { | 102 void setOppPtTEnd(const SkOpPtT* ptT) { |
| 103 SkOPASSERT(ptT == ptT->span()->ptT()); | 103 SkOPASSERT(ptT == ptT->span()->ptT()); |
| 104 SkOPASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT); | 104 SkOPASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT); |
| 105 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment()); | 105 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment()); |
| 106 fOppPtTEnd = ptT; | 106 fOppPtTEnd = ptT; |
| 107 ptT->setCoincident(); | 107 ptT->setCoincident(); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void setOppPtTStart(const SkOpPtT* ptT) { | 110 void setOppPtTStart(const SkOpPtT* ptT) { |
| 111 SkASSERT(ptT == ptT->span()->ptT()); | 111 SkASSERT(ptT == ptT->span()->ptT()); |
| 112 SkASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT); | 112 SkOPASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT); |
| 113 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment()); | 113 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment()); |
| 114 fOppPtTStart = ptT; | 114 fOppPtTStart = ptT; |
| 115 ptT->setCoincident(); | 115 ptT->setCoincident(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void setStarts(const SkOpPtT* coinPtTStart, const SkOpPtT* oppPtTStart) { | 118 void setStarts(const SkOpPtT* coinPtTStart, const SkOpPtT* oppPtTStart) { |
| 119 this->setCoinPtTStart(coinPtTStart); | 119 this->setCoinPtTStart(coinPtTStart); |
| 120 this->setOppPtTStart(oppPtTStart); | 120 this->setOppPtTStart(oppPtTStart); |
| 121 } | 121 } |
| 122 | 122 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 SkCoincidentSpans* fTop; | 294 SkCoincidentSpans* fTop; |
| 295 SkOpGlobalState* fGlobalState; | 295 SkOpGlobalState* fGlobalState; |
| 296 bool fContinue; | 296 bool fContinue; |
| 297 bool fSpanDeleted; | 297 bool fSpanDeleted; |
| 298 bool fPtAllocated; | 298 bool fPtAllocated; |
| 299 bool fCoinExtended; | 299 bool fCoinExtended; |
| 300 bool fSpanMerged; | 300 bool fSpanMerged; |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 #endif | 303 #endif |
| OLD | NEW |