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