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

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

Issue 1037573004: cumulative pathops patch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix pathopsinverse gm Created 5 years, 9 months 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
« no previous file with comments | « src/pathops/SkOpTAllocator.h ('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"
12 #include "SkTDArray.h" 11 #include "SkTDArray.h"
13 12
13 class SkOpCoincidence;
14 class SkOpContour;
14 class SkPathWriter; 15 class SkPathWriter;
15 16
16 void Assemble(const SkPathWriter& path, SkPathWriter* simple); 17 void Assemble(const SkPathWriter& path, SkPathWriter* simple);
17 // FIXME: find chase uses insert, so it can't be converted to SkTArray yet 18 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr,
18 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>* chase, int* tIndex, int* endIndex); 19 SkOpSpanBase** endPtr);
19 SkOpSegment* FindSortableTop(const SkTArray<SkOpContour*, true>& , SkOpAngle::In cludeType , 20 SkOpSegment* FindSortableTop(const SkTDArray<SkOpContour*>& , bool firstPass,
20 bool* firstContour, int* index, int* endIndex, SkPo int* topLeft, 21 SkOpAngle::IncludeType , bool* firstContour, SkOpS panBase** index,
21 bool* unsortable, bool* done, bool* onlyVertical, b ool firstPass); 22 SkOpSpanBase** endIndex, SkPoint* topLeft, bool* u nsortable,
22 SkOpSegment* FindUndone(SkTArray<SkOpContour*, true>& contourList, int* start, i nt* end); 23 bool* done, bool* onlyVertical, SkChunkAlloc* );
23 void MakeContourList(SkTArray<SkOpContour>& contours, SkTArray<SkOpContour*, tru e>& list, 24 SkOpSegment* FindUndone(SkTDArray<SkOpContour*>& contourList, SkOpSpanBase** sta rtPtr,
25 SkOpSpanBase** endPtr);
26 void MakeContourList(SkOpContour* , SkTDArray<SkOpContour*>& list,
24 bool evenOdd, bool oppEvenOdd); 27 bool evenOdd, bool oppEvenOdd);
25 bool HandleCoincidence(SkTArray<SkOpContour*, true>* , int ); 28 bool HandleCoincidence(SkTDArray<SkOpContour*>* , SkOpCoincidence* , SkChunkAllo c* ,
29 SkOpGlobalState* );
26 30
27 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY 31 #if DEBUG_ACTIVE_SPANS
28 void DebugShowActiveSpans(SkTArray<SkOpContour*, true>& contourList); 32 void DebugShowActiveSpans(SkTDArray<SkOpContour*>& contourList);
29 #endif 33 #endif
30 34
31 #endif 35 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpTAllocator.h ('k') | src/pathops/SkPathOpsCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698