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

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

Issue 2169863002: fix fuzzer bug (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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/SkOpCoincidence.cpp ('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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 return false; 179 return false;
180 } 180 }
181 return true; 181 return true;
182 } 182 }
183 #endif 183 #endif
184 184
185 void release(const SkOpSpan* ); 185 void release(const SkOpSpan* );
186 double distSq(double t, const SkOpAngle* opp) const; 186 double distSq(double t, const SkOpAngle* opp) const;
187 187
188 bool done() const { 188 bool done() const {
189 SkASSERT(this->globalState()->debugSkipAssert() || fDoneCount <= fCount) ; 189 SkOPASSERT(fDoneCount <= fCount);
190 return fDoneCount == fCount; 190 return fDoneCount == fCount;
191 } 191 }
192 192
193 bool done(const SkOpAngle* angle) const { 193 bool done(const SkOpAngle* angle) const {
194 return angle->start()->starter(angle->end())->done(); 194 return angle->start()->starter(angle->end())->done();
195 } 195 }
196 196
197 SkDPoint dPtAtT(double mid) const { 197 SkDPoint dPtAtT(double mid) const {
198 return (*CurveDPointAtT[fVerb])(fPts, fWeight, mid); 198 return (*CurveDPointAtT[fVerb])(fPts, fWeight, mid);
199 } 199 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 int fDoneCount; // number of processed spans (zero initially) 439 int fDoneCount; // number of processed spans (zero initially)
440 SkPath::Verb fVerb; 440 SkPath::Verb fVerb;
441 bool fVisited; // used by missing coincidence check 441 bool fVisited; // used by missing coincidence check
442 #if DEBUG_COINCIDENCE 442 #if DEBUG_COINCIDENCE
443 mutable bool fDebugVisited; // used by debug missing coincidence check 443 mutable bool fDebugVisited; // used by debug missing coincidence check
444 #endif 444 #endif
445 SkDEBUGCODE(int fID); 445 SkDEBUGCODE(int fID);
446 }; 446 };
447 447
448 #endif 448 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkOpCoincidence.cpp ('k') | src/pathops/SkOpSegment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698