1 /* 2 * Copyright 2012 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 #ifndef SkPathOpsCommon_DEFINED 8 #define SkPathOpsCommon_DEFINED 9 10 #include "include/pathops/SkPathOps.h" 11 #include "src/pathops/SkPathOpsTypes.h" 12 13 class SkOpAngle; 14 class SkOpCoincidence; 15 class SkOpContourHead; 16 class SkOpSegment; 17 class SkOpSpan; 18 class SkOpSpanBase; 19 class SkPath; 20 21 template <typename T> class SkTDArray; 22 23 const SkOpAngle* AngleWinding(SkOpSpanBase* start, SkOpSpanBase* end, int* windingPtr, 24 bool* sortable); 25 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, 26 SkOpSpanBase** endPtr); 27 SkOpSpan* FindSortableTop(SkOpContourHead* ); 28 SkOpSpan* FindUndone(SkOpContourHead* ); 29 bool FixWinding(SkPath* path); 30 bool SortContourList(SkOpContourHead** , bool evenOdd, bool oppEvenOdd); 31 bool HandleCoincidence(SkOpContourHead* , SkOpCoincidence* ); 32 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result 33 SkDEBUGPARAMS(bool skipAssert) 34 SkDEBUGPARAMS(const char* testName)); 35 36 #endif 37