| 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 "SkOpTAllocator.h" | 10 #include "SkOpTAllocator.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 SkDEBUGCODE(fDebugState = debugState); | 72 SkDEBUGCODE(fDebugState = debugState); |
| 73 } | 73 } |
| 74 | 74 |
| 75 void debugFixAligned(const char* id, SkPathOpsDebug::GlitchLog* ) const; | 75 void debugFixAligned(const char* id, SkPathOpsDebug::GlitchLog* ) const; |
| 76 void debugShowCoincidence() const; | 76 void debugShowCoincidence() const; |
| 77 | 77 |
| 78 const SkOpSpanBase* debugSpan(int id) const { | 78 const SkOpSpanBase* debugSpan(int id) const { |
| 79 return SkDEBUGRELEASE(fDebugState->debugSpan(id), nullptr); | 79 return SkDEBUGRELEASE(fDebugState->debugSpan(id), nullptr); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void detach(SkCoincidentSpans* ); | 82 void release(SkCoincidentSpans* ); |
| 83 void dump() const; | 83 void dump() const; |
| 84 bool expand(); | 84 bool expand(); |
| 85 bool extend(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart
, | 85 bool extend(SkOpPtT* coinPtTStart, SkOpPtT* coinPtTEnd, SkOpPtT* oppPtTStart
, |
| 86 SkOpPtT* oppPtTEnd); | 86 SkOpPtT* oppPtTEnd); |
| 87 void findOverlaps(SkOpCoincidence* , SkChunkAlloc* allocator) const; | 87 void findOverlaps(SkOpCoincidence* , SkChunkAlloc* allocator) const; |
| 88 void fixAligned(); | 88 void fixAligned(); |
| 89 void fixUp(SkOpPtT* deleted, SkOpPtT* kept); | 89 void fixUp(SkOpPtT* deleted, SkOpPtT* kept); |
| 90 | 90 |
| 91 bool isEmpty() const { | 91 bool isEmpty() const { |
| 92 return !fHead; | 92 return !fHead; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 117 double* overS, double* overE) const; | 117 double* overS, double* overE) const; |
| 118 | 118 |
| 119 bool testForCoincidence(const SkCoincidentSpans* outer, const SkOpPtT* testS
, | 119 bool testForCoincidence(const SkCoincidentSpans* outer, const SkOpPtT* testS
, |
| 120 const SkOpPtT* testE) const; | 120 const SkOpPtT* testE) const; |
| 121 SkCoincidentSpans* fHead; | 121 SkCoincidentSpans* fHead; |
| 122 SkCoincidentSpans* fTop; | 122 SkCoincidentSpans* fTop; |
| 123 SkDEBUGCODE_(SkOpGlobalState* fDebugState); | 123 SkDEBUGCODE_(SkOpGlobalState* fDebugState); |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 #endif | 126 #endif |
| OLD | NEW |