diff options
Diffstat (limited to 'src/pathops/SkPathOpsCommon.h')
-rw-r--r-- | src/pathops/SkPathOpsCommon.h | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/pathops/SkPathOpsCommon.h b/src/pathops/SkPathOpsCommon.h index 0d8cfc42f9..1bf17919ad 100644 --- a/src/pathops/SkPathOpsCommon.h +++ b/src/pathops/SkPathOpsCommon.h @@ -8,24 +8,28 @@ #define SkPathOpsCommon_DEFINED #include "SkOpAngle.h" -#include "SkOpContour.h" #include "SkTDArray.h" +class SkOpCoincidence; +class SkOpContour; class SkPathWriter; void Assemble(const SkPathWriter& path, SkPathWriter* simple); -// FIXME: find chase uses insert, so it can't be converted to SkTArray yet -SkOpSegment* FindChase(SkTDArray<SkOpSpan*>* chase, int* tIndex, int* endIndex); -SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::IncludeType , - bool* firstContour, int* index, int* endIndex, SkPoint* topLeft, - bool* unsortable, bool* done, bool* onlyVertical, bool firstPass); -SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, int* end); -void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, true>& list, +SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, + SkOpSpanBase** endPtr); +SkOpSegment* FindSortableTop(const SkTDArray<SkOpContour*>& , bool firstPass, + SkOpAngle::IncludeType , bool* firstContour, SkOpSpanBase** index, + SkOpSpanBase** endIndex, SkPoint* topLeft, bool* unsortable, + bool* done, bool* onlyVertical, SkChunkAlloc* ); +SkOpSegment* FindUndone(SkTDArray<SkOpContour*>& contourList, SkOpSpanBase** startPtr, + SkOpSpanBase** endPtr); +void MakeContourList(SkOpContour* , SkTDArray<SkOpContour*>& list, bool evenOdd, bool oppEvenOdd); -bool HandleCoincidence(SkTArray<SkOpContour*, true>* , int ); +bool HandleCoincidence(SkTDArray<SkOpContour*>* , SkOpCoincidence* , SkChunkAlloc* , + SkOpGlobalState* ); -#if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY -void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList); +#if DEBUG_ACTIVE_SPANS +void DebugShowActiveSpans(SkTDArray<SkOpContour*>& contourList); #endif #endif |