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 "SkOpContour.h" | 11 #include "SkOpContour.h" |
11 #include "SkTDArray.h" | 12 #include "SkTDArray.h" |
12 | 13 |
13 class SkPathWriter; | 14 class SkPathWriter; |
14 | 15 |
15 void Assemble(const SkPathWriter& path, SkPathWriter* simple); | 16 void Assemble(const SkPathWriter& path, SkPathWriter* simple); |
16 void CheckEnds(SkTArray<SkOpContour*, true>* contourList); | 17 void CheckEnds(SkTArray<SkOpContour*, true>* contourList); |
| 18 void CheckTiny(SkTArray<SkOpContour*, true>* contourList); |
17 // FIXME: find chase uses insert, so it can't be converted to SkTArray yet | 19 // FIXME: find chase uses insert, so it can't be converted to SkTArray yet |
18 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex); | 20 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex); |
19 SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& contourList, bo
ol* firstContour, | 21 SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::In
cludeType , |
20 int* index, int* endIndex, SkPoint* topLeft, bool*
unsortable, | 22 bool* firstContour, int* index, int* endIndex, SkPo
int* topLeft, |
21 bool* done, bool binary); | 23 bool* unsortable, bool* done); |
22 SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, i
nt* end); | 24 SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, i
nt* end); |
23 void FixOtherTIndex(SkTArray<SkOpContour*, true>* contourList); | 25 void FixOtherTIndex(SkTArray<SkOpContour*, true>* contourList); |
24 void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, tru
e>& list, | 26 void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, tru
e>& list, |
25 bool evenOdd, bool oppEvenOdd); | 27 bool evenOdd, bool oppEvenOdd); |
26 void SortSegments(SkTArray<SkOpContour*, true>* contourList); | 28 void SortSegments(SkTArray<SkOpContour*, true>* contourList); |
27 | 29 |
28 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY | 30 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY |
29 void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList); | 31 void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList); |
30 #endif | 32 #endif |
31 | 33 |
32 #endif | 34 #endif |
OLD | NEW |