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

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

Issue 1250293002: fix path ops fuzz buster (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: corrupting bug kaput Created 5 years, 5 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/SkOpSpan.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 "SkTDArray.h" 11 #include "SkTDArray.h"
12 12
13 class SkOpCoincidence; 13 class SkOpCoincidence;
14 class SkOpContour; 14 class SkOpContour;
15 class SkPathWriter; 15 class SkPathWriter;
16 16
17 const SkOpAngle* AngleWinding(SkOpSpanBase* start, SkOpSpanBase* end, int* windi ngPtr, 17 const SkOpAngle* AngleWinding(SkOpSpanBase* start, SkOpSpanBase* end, int* windi ngPtr,
18 bool* sortable); 18 bool* sortable);
19 void Assemble(const SkPathWriter& path, SkPathWriter* simple); 19 void Assemble(const SkPathWriter& path, SkPathWriter* simple);
20 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr, 20 SkOpSegment* FindChase(SkTDArray<SkOpSpanBase*>* chase, SkOpSpanBase** startPtr,
21 SkOpSpanBase** endPtr); 21 SkOpSpanBase** endPtr);
22 SkOpSpan* FindSortableTop(SkOpContourHead* ); 22 SkOpSpan* FindSortableTop(SkOpContourHead* );
23 SkOpSegment* FindUndone(SkOpContourHead* , SkOpSpanBase** startPtr, 23 SkOpSegment* FindUndone(SkOpContourHead* , SkOpSpanBase** startPtr,
24 SkOpSpanBase** endPtr); 24 SkOpSpanBase** endPtr);
25 void FixWinding(SkPath* path); 25 void FixWinding(SkPath* path);
26 bool SortContourList(SkOpContourHead** , bool evenOdd, bool oppEvenOdd); 26 bool SortContourList(SkOpContourHead** , bool evenOdd, bool oppEvenOdd);
27 bool HandleCoincidence(SkOpContourHead* , SkOpCoincidence* , SkChunkAlloc* ); 27 bool HandleCoincidence(SkOpContourHead* , SkOpCoincidence* , SkChunkAlloc* );
28 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result, bool expectSuccess); 28 bool OpDebug(const SkPath& one, const SkPath& two, SkPathOp op, SkPath* result,
29 bool expectSuccess SkDEBUGPARAMS(const char* testName));
29 #if DEBUG_ACTIVE_SPANS 30 #if DEBUG_ACTIVE_SPANS
30 void DebugShowActiveSpans(SkOpContourHead* ); 31 void DebugShowActiveSpans(SkOpContourHead* );
31 #endif 32 #endif
32 33
33 #endif 34 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpSpan.cpp ('k') | src/pathops/SkPathOpsCommon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698