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

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

Issue 2401673004: fix another fuzz (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/pathops/SkOpCoincidence.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 2013 Google Inc. 2 * Copyright 2013 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 SkOpCoincidence_DEFINED 7 #ifndef SkOpCoincidence_DEFINED
8 #define SkOpCoincidence_DEFINED 8 #define SkOpCoincidence_DEFINED
9 9
10 #include "SkTDArray.h" 10 #include "SkTDArray.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void setOppPtTEnd(const SkOpPtT* ptT) { 102 void setOppPtTEnd(const SkOpPtT* ptT) {
103 SkOPASSERT(ptT == ptT->span()->ptT()); 103 SkOPASSERT(ptT == ptT->span()->ptT());
104 SkOPASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT); 104 SkOPASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT);
105 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment()); 105 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment());
106 fOppPtTEnd = ptT; 106 fOppPtTEnd = ptT;
107 ptT->setCoincident(); 107 ptT->setCoincident();
108 } 108 }
109 109
110 void setOppPtTStart(const SkOpPtT* ptT) { 110 void setOppPtTStart(const SkOpPtT* ptT) {
111 SkASSERT(ptT == ptT->span()->ptT()); 111 SkASSERT(ptT == ptT->span()->ptT());
112 SkASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT); 112 SkOPASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT);
113 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment()); 113 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment());
114 fOppPtTStart = ptT; 114 fOppPtTStart = ptT;
115 ptT->setCoincident(); 115 ptT->setCoincident();
116 } 116 }
117 117
118 void setStarts(const SkOpPtT* coinPtTStart, const SkOpPtT* oppPtTStart) { 118 void setStarts(const SkOpPtT* coinPtTStart, const SkOpPtT* oppPtTStart) {
119 this->setCoinPtTStart(coinPtTStart); 119 this->setCoinPtTStart(coinPtTStart);
120 this->setOppPtTStart(oppPtTStart); 120 this->setOppPtTStart(oppPtTStart);
121 } 121 }
122 122
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 SkCoincidentSpans* fTop; 294 SkCoincidentSpans* fTop;
295 SkOpGlobalState* fGlobalState; 295 SkOpGlobalState* fGlobalState;
296 bool fContinue; 296 bool fContinue;
297 bool fSpanDeleted; 297 bool fSpanDeleted;
298 bool fPtAllocated; 298 bool fPtAllocated;
299 bool fCoinExtended; 299 bool fCoinExtended;
300 bool fSpanMerged; 300 bool fSpanMerged;
301 }; 301 };
302 302
303 #endif 303 #endif
OLDNEW
« no previous file with comments | « no previous file | src/pathops/SkOpCoincidence.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698