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

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

Issue 2357373002: fix next kevin 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ptT->setCoincident(); 88 ptT->setCoincident();
89 } 89 }
90 90
91 void setEnds(const SkOpPtT* coinPtTEnd, const SkOpPtT* oppPtTEnd) { 91 void setEnds(const SkOpPtT* coinPtTEnd, const SkOpPtT* oppPtTEnd) {
92 this->setCoinPtTEnd(coinPtTEnd); 92 this->setCoinPtTEnd(coinPtTEnd);
93 this->setOppPtTEnd(oppPtTEnd); 93 this->setOppPtTEnd(oppPtTEnd);
94 } 94 }
95 95
96 void setOppPtTEnd(const SkOpPtT* ptT) { 96 void setOppPtTEnd(const SkOpPtT* ptT) {
97 SkOPASSERT(ptT == ptT->span()->ptT()); 97 SkOPASSERT(ptT == ptT->span()->ptT());
98 SkASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT); 98 SkOPASSERT(!fOppPtTStart || ptT->fT != fOppPtTStart->fT);
99 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment()); 99 SkASSERT(!fOppPtTStart || fOppPtTStart->segment() == ptT->segment());
100 fOppPtTEnd = ptT; 100 fOppPtTEnd = ptT;
101 ptT->setCoincident(); 101 ptT->setCoincident();
102 } 102 }
103 103
104 void setOppPtTStart(const SkOpPtT* ptT) { 104 void setOppPtTStart(const SkOpPtT* ptT) {
105 SkASSERT(ptT == ptT->span()->ptT()); 105 SkASSERT(ptT == ptT->span()->ptT());
106 SkASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT); 106 SkASSERT(!fOppPtTEnd || ptT->fT != fOppPtTEnd->fT);
107 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment()); 107 SkASSERT(!fOppPtTEnd || fOppPtTEnd->segment() == ptT->segment());
108 fOppPtTStart = ptT; 108 fOppPtTStart = ptT;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 SkCoincidentSpans* fTop; 302 SkCoincidentSpans* fTop;
303 SkOpGlobalState* fGlobalState; 303 SkOpGlobalState* fGlobalState;
304 bool fContinue; 304 bool fContinue;
305 bool fSpanDeleted; 305 bool fSpanDeleted;
306 bool fPtAllocated; 306 bool fPtAllocated;
307 bool fCoinExtended; 307 bool fCoinExtended;
308 bool fSpanMerged; 308 bool fSpanMerged;
309 }; 309 };
310 310
311 #endif 311 #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