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