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

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

Issue 1730293002: fix path ops fuzz bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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/SkOpContour.h ('k') | src/pathops/SkOpSegment.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 SkOpSegment_DEFINE 7 #ifndef SkOpSegment_DEFINE
8 #define SkOpSegment_DEFINE 8 #define SkOpSegment_DEFINE
9 9
10 #include "SkOpAngle.h" 10 #include "SkOpAngle.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 bool markAndChaseWinding(SkOpSpanBase* start, SkOpSpanBase* end, int winding , 264 bool markAndChaseWinding(SkOpSpanBase* start, SkOpSpanBase* end, int winding ,
265 int oppWinding, SkOpSpanBase** lastPtr); 265 int oppWinding, SkOpSpanBase** lastPtr);
266 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, const SkOpAngle* ang le); 266 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, const SkOpAngle* ang le);
267 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, int oppMaxWinding, i nt oppSumWinding, 267 SkOpSpanBase* markAngle(int maxWinding, int sumWinding, int oppMaxWinding, i nt oppSumWinding,
268 const SkOpAngle* angle); 268 const SkOpAngle* angle);
269 void markDone(SkOpSpan* ); 269 void markDone(SkOpSpan* );
270 bool markWinding(SkOpSpan* , int winding); 270 bool markWinding(SkOpSpan* , int winding);
271 bool markWinding(SkOpSpan* , int winding, int oppWinding); 271 bool markWinding(SkOpSpan* , int winding, int oppWinding);
272 bool match(const SkOpPtT* span, const SkOpSegment* parent, double t, const S kPoint& pt) const; 272 bool match(const SkOpPtT* span, const SkOpSegment* parent, double t, const S kPoint& pt) const;
273 bool missingCoincidence(SkOpCoincidence* coincidences, SkChunkAlloc* allocat or); 273 bool missingCoincidence(SkOpCoincidence* coincidences, SkChunkAlloc* allocat or);
274 void moveMultiples(); 274 bool moveMultiples();
275 void moveNearby(); 275 void moveNearby();
276 276
277 SkOpSegment* next() const { 277 SkOpSegment* next() const {
278 return fNext; 278 return fNext;
279 } 279 }
280 280
281 SkOpSegment* nextChase(SkOpSpanBase** , int* step, SkOpSpan** , SkOpSpanBase ** last) const; 281 SkOpSegment* nextChase(SkOpSpanBase** , int* step, SkOpSpan** , SkOpSpanBase ** last) const;
282 bool operand() const; 282 bool operand() const;
283 283
284 static int OppSign(const SkOpSpanBase* start, const SkOpSpanBase* end) { 284 static int OppSign(const SkOpSpanBase* start, const SkOpSpanBase* end) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 SkPathOpsBounds fBounds; // tight bounds 416 SkPathOpsBounds fBounds; // tight bounds
417 SkScalar fWeight; 417 SkScalar fWeight;
418 int fCount; // number of spans (one for a non-intersecting segment) 418 int fCount; // number of spans (one for a non-intersecting segment)
419 int fDoneCount; // number of processed spans (zero initially) 419 int fDoneCount; // number of processed spans (zero initially)
420 SkPath::Verb fVerb; 420 SkPath::Verb fVerb;
421 bool fVisited; // used by missing coincidence check 421 bool fVisited; // used by missing coincidence check
422 SkDEBUGCODE(int fID); 422 SkDEBUGCODE(int fID);
423 }; 423 };
424 424
425 #endif 425 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpContour.h ('k') | src/pathops/SkOpSegment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698