diff -r 000000000000 -r 6474c204b198 gfx/skia/trunk/src/pathops/SkPathOpsCommon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gfx/skia/trunk/src/pathops/SkPathOpsCommon.h Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,31 @@ +/* + * 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 "SkOpAngle.h" +#include "SkOpContour.h" +#include "SkTDArray.h" + +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& chase, int& tIndex, int& endIndex); +SkOpSegment* FindSortableTop(const SkTArray& , SkOpAngle::IncludeType , + bool* firstContour, int* index, int* endIndex, SkPoint* topLeft, + bool* unsortable, bool* done); +SkOpSegment* FindUndone(SkTArray& contourList, int* start, int* end); +void MakeContourList(SkTArray& contours, SkTArray& list, + bool evenOdd, bool oppEvenOdd); +void HandleCoincidence(SkTArray* , int ); + +#if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY +void DebugShowActiveSpans(SkTArray& contourList); +#endif + +#endif