/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkPathOpsCommon_DEFINED #define SkPathOpsCommon_DEFINED #include "SkOpContour.h" class SkPathWriter; void Assemble(const SkPathWriter& path, SkPathWriter* simple); SkOpSegment* FindChase(SkTDArray& chase, int& tIndex, int& endIndex); SkOpSegment* FindSortableTop(const SkTDArray& contourList, bool* firstContour, int* index, int* endIndex, SkPoint* topLeft, bool* unsortable, bool* done, bool binary); SkOpSegment* FindUndone(SkTDArray& contourList, int* start, int* end); void FixOtherTIndex(SkTDArray* contourList); void MakeContourList(SkTArray& contours, SkTDArray& list, bool evenOdd, bool oppEvenOdd); void SortSegments(SkTDArray* contourList); #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY void DebugShowActiveSpans(SkTDArray& contourList); #endif #endif