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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // to a new span pair | 73 // to a new span pair |
74 SkOpPtT* oppPtTStartWritable() const { return const_cast<SkOpPtT*>(fOppPtTSt
art); } | 74 SkOpPtT* oppPtTStartWritable() const { return const_cast<SkOpPtT*>(fOppPtTSt
art); } |
75 SkOpPtT* oppPtTEndWritable() const { return const_cast<SkOpPtT*>(fOppPtTEnd)
; } | 75 SkOpPtT* oppPtTEndWritable() const { return const_cast<SkOpPtT*>(fOppPtTEnd)
; } |
76 bool ordered(bool* result) const; | 76 bool ordered(bool* result) const; |
77 | 77 |
78 void set(SkCoincidentSpans* next, const SkOpPtT* coinPtTStart, const SkOpPtT
* coinPtTEnd, | 78 void set(SkCoincidentSpans* next, const SkOpPtT* coinPtTStart, const SkOpPtT
* coinPtTEnd, |
79 const SkOpPtT* oppPtTStart, const SkOpPtT* oppPtTEnd); | 79 const SkOpPtT* oppPtTStart, const SkOpPtT* oppPtTEnd); |
80 | 80 |
81 void setCoinPtTEnd(const SkOpPtT* ptT) { | 81 void setCoinPtTEnd(const SkOpPtT* ptT) { |
82 SkOPASSERT(ptT == ptT->span()->ptT()); | 82 SkOPASSERT(ptT == ptT->span()->ptT()); |
83 SkASSERT(!fCoinPtTStart || ptT->fT != fCoinPtTStart->fT); | 83 SkOPASSERT(!fCoinPtTStart || ptT->fT != fCoinPtTStart->fT); |
84 SkASSERT(!fCoinPtTStart || fCoinPtTStart->segment() == ptT->segment()); | 84 SkASSERT(!fCoinPtTStart || fCoinPtTStart->segment() == ptT->segment()); |
85 fCoinPtTEnd = ptT; | 85 fCoinPtTEnd = ptT; |
86 ptT->setCoincident(); | 86 ptT->setCoincident(); |
87 } | 87 } |
88 | 88 |
89 void setCoinPtTStart(const SkOpPtT* ptT) { | 89 void setCoinPtTStart(const SkOpPtT* ptT) { |
90 SkASSERT(ptT == ptT->span()->ptT()); | 90 SkASSERT(ptT == ptT->span()->ptT()); |
91 SkOPASSERT(!fCoinPtTEnd || ptT->fT != fCoinPtTEnd->fT); | 91 SkOPASSERT(!fCoinPtTEnd || ptT->fT != fCoinPtTEnd->fT); |
92 SkASSERT(!fCoinPtTEnd || fCoinPtTEnd->segment() == ptT->segment()); | 92 SkASSERT(!fCoinPtTEnd || fCoinPtTEnd->segment() == ptT->segment()); |
93 fCoinPtTStart = ptT; | 93 fCoinPtTStart = ptT; |
(...skipping 200 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 |