| 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 const SkOpAngle* AngleWinding(SkOpSpanBase* start, SkOpSpanBase* end, int* windi
ngPtr, |
| 18 bool* sortable); |
| 17 void Assemble(const SkPathWriter& path, SkPathWriter* simple); | 19 void Assemble(const SkPathWriter& path, SkPathWriter* simple); |
| 18 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, | 20 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, |
| 19 SkOpSpanBase** endPtr); | 21 SkOpSpanBase** endPtr); |
| 20 SkOpSpan* FindSortableTop(SkOpContourHead* ); | 22 SkOpSpan* FindSortableTop(SkOpContourHead* ); |
| 21 SkOpSegment* FindUndone(SkOpContourHead* , SkOpSpanBase** startPtr, | 23 SkOpSegment* FindUndone(SkOpContourHead* , SkOpSpanBase** startPtr, |
| 22 SkOpSpanBase** endPtr); | 24 SkOpSpanBase** endPtr); |
| 23 bool SortContourList(SkOpContourHead** , bool evenOdd, bool oppEvenOdd); | 25 bool SortContourList(SkOpContourHead** , bool evenOdd, bool oppEvenOdd); |
| 24 bool HandleCoincidence(SkOpContourHead* , SkOpCoincidence* , SkChunkAlloc* ); | 26 bool HandleCoincidence(SkOpContourHead* , SkOpCoincidence* , SkChunkAlloc* ); |
| 25 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result,
bool expectSuccess); | 27 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result,
bool expectSuccess); |
| 26 #if DEBUG_ACTIVE_SPANS | 28 #if DEBUG_ACTIVE_SPANS |
| 27 void DebugShowActiveSpans(SkOpContourHead* ); | 29 void DebugShowActiveSpans(SkOpContourHead* ); |
| 28 #endif | 30 #endif |
| 29 | 31 |
| 30 #endif | 32 #endif |
| OLD | NEW |