| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkPathOpsCommon_DEFINED | 7 #ifndef SkPathOpsCommon_DEFINED |
| 8 #define SkPathOpsCommon_DEFINED | 8 #define SkPathOpsCommon_DEFINED |
| 9 | 9 |
| 10 #include "SkOpAngle.h" | 10 #include "SkOpAngle.h" |
| 11 #include "SkTDArray.h" | 11 #include "SkTDArray.h" |
| 12 | 12 |
| 13 class SkOpCoincidence; | 13 class SkOpCoincidence; |
| 14 class SkOpContour; | 14 class SkOpContour; |
| 15 class SkPathWriter; | 15 class SkPathWriter; |
| 16 | 16 |
| 17 void Assemble(const SkPathWriter& path, SkPathWriter* simple); | 17 void Assemble(const SkPathWriter& path, SkPathWriter* simple); |
| 18 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, | 18 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, |
| 19 SkOpSpanBase** endPtr); | 19 SkOpSpanBase** endPtr); |
| 20 SkOpSegment* FindSortableTop(const SkTDArray<SkOpContour*>& , bool firstPass, | 20 SkOpSegment* FindSortableTop(const SkTDArray<SkOpContour*>& , bool firstPass, |
| 21 SkOpAngle::IncludeType , bool* firstContour, SkOpS
panBase** index, | 21 SkOpAngle::IncludeType , bool* firstContour, SkOpS
panBase** index, |
| 22 SkOpSpanBase** endIndex, SkPoint* topLeft, bool* u
nsortable, | 22 SkOpSpanBase** endIndex, SkDPoint* topLeft, bool*
unsortable, |
| 23 bool* done, bool* onlyVertical, SkChunkAlloc* ); | 23 bool* done, bool* onlyVertical, SkChunkAlloc* ); |
| 24 SkOpSegment* FindUndone(SkTDArray<SkOpContour*>& contourList, SkOpSpanBase** sta
rtPtr, | 24 SkOpSegment* FindUndone(SkTDArray<SkOpContour*>& contourList, SkOpSpanBase** sta
rtPtr, |
| 25 SkOpSpanBase** endPtr); | 25 SkOpSpanBase** endPtr); |
| 26 void MakeContourList(SkOpContour* , SkTDArray<SkOpContour*>& list, | 26 void MakeContourList(SkOpContour* , SkTDArray<SkOpContour*>& list, |
| 27 bool evenOdd, bool oppEvenOdd); | 27 bool evenOdd, bool oppEvenOdd); |
| 28 bool HandleCoincidence(SkTDArray<SkOpContour*>* , SkOpCoincidence* , SkChunkAllo
c* , | 28 bool HandleCoincidence(SkTDArray<SkOpContour*>* , SkOpCoincidence* , SkChunkAllo
c* , |
| 29 SkOpGlobalState* ); | 29 SkOpGlobalState* ); |
| 30 | 30 |
| 31 #if DEBUG_ACTIVE_SPANS | 31 #if DEBUG_ACTIVE_SPANS |
| 32 void DebugShowActiveSpans(SkTDArray<SkOpContour*>& contourList); | 32 void DebugShowActiveSpans(SkTDArray<SkOpContour*>& contourList); |
| 33 #endif | 33 #endif |
| 34 | 34 |
| 35 #endif | 35 #endif |
| OLD | NEW |