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

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

Issue 14798004: path ops -- fix skp bugs (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 7 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 | 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 "SkOpContour.h" 10 #include "SkOpContour.h"
11 11
12 class SkPathWriter; 12 class SkPathWriter;
13 13
14 void Assemble(const SkPathWriter& path, SkPathWriter* simple); 14 void Assemble(const SkPathWriter& path, SkPathWriter* simple);
15 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex); 15 SkOpSegment* FindChase(SkTDArray<SkOpSpan*>& chase, int& tIndex, int& endIndex);
16 SkOpSegment* FindSortableTop(const SkTDArray<SkOpContour*>& contourList, bool* f irstContour, 16 SkOpSegment* FindSortableTop(const SkTDArray<SkOpContour*>& contourList, bool* f irstContour,
17 int* index, int* endIndex, SkPoint* topLeft, bool* unsortable, 17 int* index, int* endIndex, SkPoint* topLeft, bool* unsortable,
18 bool* done, bool binary); 18 bool* done, bool binary);
19 SkOpSegment* FindUndone(SkTDArray<SkOpContour*>& contourList, int* start, int* e nd); 19 SkOpSegment* FindUndone(SkTDArray<SkOpContour*>& contourList, int* start, int* e nd);
20 void FixOtherTIndex(SkTDArray<SkOpContour*>* contourList); 20 void FixOtherTIndex(SkTDArray<SkOpContour*>* contourList);
21 void MakeContourList(SkTArray<SkOpContour>& contours, SkTDArray<SkOpContour*>& l ist, 21 void MakeContourList(SkTArray<SkOpContour>& contours, SkTDArray<SkOpContour*>& l ist,
22 bool evenOdd, bool oppEvenOdd); 22 bool evenOdd, bool oppEvenOdd);
23 void SortSegments(SkTDArray<SkOpContour*>* contourList); 23 void SortSegments(SkTDArray<SkOpContour*>* contourList);
24 24
25 #if DEBUG_ACTIVE_SPANS 25 #if DEBUG_ACTIVE_SPANS || DEBUG_ACTIVE_SPANS_FIRST_ONLY
26 void DebugShowActiveSpans(SkTDArray<SkOpContour*>& contourList); 26 void DebugShowActiveSpans(SkTDArray<SkOpContour*>& contourList);
27 #endif 27 #endif
28 28
29 #endif 29 #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