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

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

Issue 2443243002: fix a few more fuzzes (Closed)
Patch Set: Created 4 years, 1 month 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/SkOpCoincidence.cpp ('k') | no next file » | 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 void setNext(SkOpSpanBase* nextT) { 511 void setNext(SkOpSpanBase* nextT) {
512 SkASSERT(!final()); 512 SkASSERT(!final());
513 fNext = nextT; 513 fNext = nextT;
514 } 514 }
515 515
516 void setOppSum(int oppSum); 516 void setOppSum(int oppSum);
517 517
518 void setOppValue(int oppValue) { 518 void setOppValue(int oppValue) {
519 SkASSERT(!final()); 519 SkASSERT(!final());
520 SkASSERT(fOppSum == SK_MinS32); 520 SkASSERT(fOppSum == SK_MinS32);
521 SkASSERT(!oppValue || !fDone); 521 SkOPASSERT(!oppValue || !fDone);
522 fOppValue = oppValue; 522 fOppValue = oppValue;
523 } 523 }
524 524
525 void setToAngle(SkOpAngle* angle) { 525 void setToAngle(SkOpAngle* angle) {
526 SkASSERT(!final()); 526 SkASSERT(!final());
527 fToAngle = angle; 527 fToAngle = angle;
528 } 528 }
529 529
530 void setWindSum(int windSum); 530 void setWindSum(int windSum);
531 531
(...skipping 29 matching lines...) Expand all
561 int fWindSum; // accumulated from contours surrounding this one. 561 int fWindSum; // accumulated from contours surrounding this one.
562 int fOppSum; // for binary operators: the opposite winding sum 562 int fOppSum; // for binary operators: the opposite winding sum
563 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident 563 int fWindValue; // 0 == canceled; 1 == normal; >1 == coincident
564 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v alue goes here 564 int fOppValue; // normally 0 -- when binary coincident edges combine, opp v alue goes here
565 int fTopTTry; // specifies direction and t value to try next 565 int fTopTTry; // specifies direction and t value to try next
566 bool fDone; // if set, this span to next higher T has been processed 566 bool fDone; // if set, this span to next higher T has been processed
567 mutable bool fAlreadyAdded; 567 mutable bool fAlreadyAdded;
568 }; 568 };
569 569
570 #endif 570 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698