Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/pathops/SkPathOpsCommon.h

Issue 52653002: pathops work in progress (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: add raster vs gpu test Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | src/pathops/SkPathOpsCommon.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "SkOpContour.h" 11 #include "SkOpContour.h"
12 #include "SkTDArray.h" 12 #include "SkTDArray.h"
13 13
14 class SkPathWriter; 14 class SkPathWriter;
15 15
16 void Assemble(const SkPathWriter& path, SkPathWriter* simple); 16 void Assemble(const SkPathWriter& path, SkPathWriter* simple);
17 void CheckEnds(SkTArray<SkOpContour*, true>* contourList);
18 void CheckTiny(SkTArray<SkOpContour*, true>* contourList);
19 // FIXME: find chase uses insert, so it can't be converted to SkTArray yet 17 // FIXME: find chase uses insert, so it can't be converted to SkTArray yet
20 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex); 18 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex);
21 SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::In cludeType , 19 SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::In cludeType ,
22 bool* firstContour, int* index, int* endIndex, SkPo int* topLeft, 20 bool* firstContour, int* index, int* endIndex, SkPo int* topLeft,
23 bool* unsortable, bool* done); 21 bool* unsortable, bool* done);
24 SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, i nt* end); 22 SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, i nt* end);
25 void FixOtherTIndex(SkTArray<SkOpContour*, true>* contourList);
26 void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, tru e>& list, 23 void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, tru e>& list,
27 bool evenOdd, bool oppEvenOdd); 24 bool evenOdd, bool oppEvenOdd);
28 void SortSegments(SkTArray<SkOpContour*, true>* contourList); 25 void HandleCoincidence(SkTArray<SkOpContour*, true>* , int );
29 26
30 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY 27 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY
31 void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList); 28 void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList);
32 #endif 29 #endif
33 30
34 #endif 31 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | src/pathops/SkPathOpsCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698