1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/pathops/SkPathOpsCommon.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +/* 1.5 + * Copyright 2012 Google Inc. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license that can be 1.8 + * found in the LICENSE file. 1.9 + */ 1.10 +#ifndef SkPathOpsCommon_DEFINED 1.11 +#define SkPathOpsCommon_DEFINED 1.12 + 1.13 +#include "SkOpAngle.h" 1.14 +#include "SkOpContour.h" 1.15 +#include "SkTDArray.h" 1.16 + 1.17 +class SkPathWriter; 1.18 + 1.19 +void Assemble(const SkPathWriter& path, SkPathWriter* simple); 1.20 +// FIXME: find chase uses insert, so it can't be converted to SkTArray yet 1.21 +SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex); 1.22 +SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::IncludeType , 1.23 + bool* firstContour, int* index, int* endIndex, SkPoint* topLeft, 1.24 + bool* unsortable, bool* done); 1.25 +SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, int* end); 1.26 +void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, true>& list, 1.27 + bool evenOdd, bool oppEvenOdd); 1.28 +void HandleCoincidence(SkTArray<SkOpContour*, true>* , int ); 1.29 + 1.30 +#if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY 1.31 +void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList); 1.32 +#endif 1.33 + 1.34 +#endif