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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 } | 220 } |
221 | 221 |
222 const SkOpGlobalState* globalState() const { | 222 const SkOpGlobalState* globalState() const { |
223 return fGlobalState; | 223 return fGlobalState; |
224 } | 224 } |
225 | 225 |
226 bool isEmpty() const { | 226 bool isEmpty() const { |
227 return !fHead && !fTop; | 227 return !fHead && !fTop; |
228 } | 228 } |
229 | 229 |
230 void mark(DEBUG_COIN_DECLARE_ONLY_PARAMS()); | 230 bool mark(DEBUG_COIN_DECLARE_ONLY_PARAMS()); |
231 void markCollapsed(SkOpPtT* ); | 231 void markCollapsed(SkOpPtT* ); |
232 | 232 |
233 static bool Ordered(const SkOpPtT* coinPtTStart, const SkOpPtT* oppPtTStart)
{ | 233 static bool Ordered(const SkOpPtT* coinPtTStart, const SkOpPtT* oppPtTStart)
{ |
234 return Ordered(coinPtTStart->segment(), oppPtTStart->segment()); | 234 return Ordered(coinPtTStart->segment(), oppPtTStart->segment()); |
235 } | 235 } |
236 | 236 |
237 static bool Ordered(const SkOpSegment* coin, const SkOpSegment* opp); | 237 static bool Ordered(const SkOpSegment* coin, const SkOpSegment* opp); |
238 void release(const SkOpSegment* ); | 238 void release(const SkOpSegment* ); |
239 void releaseDeleted(); | 239 void releaseDeleted(); |
240 | 240 |
(...skipping 53 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 |