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

Side by Side Diff: src/pathops/SkOpSpan.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/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.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 SkOpSpan_DEFINED 7 #ifndef SkOpSpan_DEFINED
8 #define SkOpSpan_DEFINED 8 #define SkOpSpan_DEFINED
9 9
10 #include "SkPathOpsDebug.h" 10 #include "SkPathOpsDebug.h"
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 SkOpPtT* oldNext = this->fNext; 43 SkOpPtT* oldNext = this->fNext;
44 SkASSERT(this != opp); 44 SkASSERT(this != opp);
45 this->fNext = opp; 45 this->fNext = opp;
46 SkASSERT(oppPrev != oldNext); 46 SkASSERT(oppPrev != oldNext);
47 oppPrev->fNext = oldNext; 47 oppPrev->fNext = oldNext;
48 } 48 }
49 49
50 bool alias() const; 50 bool alias() const;
51 bool collapsed(const SkOpPtT* ) const;
51 bool contains(const SkOpPtT* ) const; 52 bool contains(const SkOpPtT* ) const;
52 SkOpPtT* contains(const SkOpSegment* ); 53 SkOpPtT* contains(const SkOpSegment* );
53 SkOpContour* contour() const; 54 SkOpContour* contour() const;
54 55
55 int debugID() const { 56 int debugID() const {
56 return SkDEBUGRELEASE(fID, -1); 57 return SkDEBUGRELEASE(fID, -1);
57 } 58 }
58 59
59 const SkOpAngle* debugAngle(int id) const; 60 const SkOpAngle* debugAngle(int id) const;
60 SkOpContour* debugContour(int id); 61 SkOpContour* debugContour(int id);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } 260 }
260 261
261 SkOpPtT* ptT() { 262 SkOpPtT* ptT() {
262 return &fPtT; 263 return &fPtT;
263 } 264 }
264 265
265 SkOpSegment* segment() const { 266 SkOpSegment* segment() const {
266 return fSegment; 267 return fSegment;
267 } 268 }
268 269
270 void setAligned() {
271 fAligned = true;
272 }
273
269 void setChased(bool chased) { 274 void setChased(bool chased) {
270 fChased = chased; 275 fChased = chased;
271 } 276 }
272 277
273 SkOpPtT* setCoinEnd(SkOpSpanBase* oldCoinEnd, SkOpSegment* oppSegment); 278 SkOpPtT* setCoinEnd(SkOpSpanBase* oldCoinEnd, SkOpSegment* oppSegment);
274 279
275 void setFromAngle(SkOpAngle* angle) { 280 void setFromAngle(SkOpAngle* angle) {
276 fFromAngle = angle; 281 fFromAngle = angle;
277 } 282 }
278 283
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 SkOpSpanBase* fNext; // next intersection point 496 SkOpSpanBase* fNext; // next intersection point
492 int fWindSum; // accumulated from contours surrounding this one. 497 int fWindSum; // accumulated from contours surrounding this one.
493 int fOppSum; // for binary operators: the opposite winding sum 498 int fOppSum; // for binary operators: the opposite winding sum
494 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident 499 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident
495 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v alue goes here 500 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v alue goes here
496 int fTopTTry; // specifies direction and t value to try next 501 int fTopTTry; // specifies direction and t value to try next
497 bool fDone; // if set, this span to next higher T has been processed 502 bool fDone; // if set, this span to next higher T has been processed
498 }; 503 };
499 504
500 #endif 505 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpSegment.cpp ('k') | src/pathops/SkOpSpan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698