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

Side by Side Diff: src/pathops/SkPathOpsTypes.cpp

Issue 1394503003: fix some pathops bugs found in 1M skps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: init to avoid warning Created 5 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 | « src/pathops/SkPathOpsTypes.h ('k') | tests/PathOpsCubicConicIntersectionTest.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 #include "SkFloatBits.h" 7 #include "SkFloatBits.h"
8 #include "SkOpCoincidence.h" 8 #include "SkOpCoincidence.h"
9 #include "SkPathOpsTypes.h" 9 #include "SkPathOpsTypes.h"
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 SkOpGlobalState::SkOpGlobalState(SkOpCoincidence* coincidence, SkOpContourHead* head 203 SkOpGlobalState::SkOpGlobalState(SkOpCoincidence* coincidence, SkOpContourHead* head
204 SkDEBUGPARAMS(const char* testName)) 204 SkDEBUGPARAMS(const char* testName))
205 : fCoincidence(coincidence) 205 : fCoincidence(coincidence)
206 , fContourHead(head) 206 , fContourHead(head)
207 , fNested(0) 207 , fNested(0)
208 , fWindingFailed(false) 208 , fWindingFailed(false)
209 , fAngleCoincidence(false) 209 , fAngleCoincidence(false)
210 , fPhase(kIntersecting) 210 , fPhase(kIntersecting)
211 SkDEBUGPARAMS(fDebugTestName(testName)) 211 SkDEBUGPARAMS(fDebugTestName(testName))
212 SkDEBUGPARAMS(fAngleID(0)) 212 SkDEBUGPARAMS(fAngleID(0))
213 SkDEBUGPARAMS(fCoinID(0))
213 SkDEBUGPARAMS(fContourID(0)) 214 SkDEBUGPARAMS(fContourID(0))
214 SkDEBUGPARAMS(fPtTID(0)) 215 SkDEBUGPARAMS(fPtTID(0))
215 SkDEBUGPARAMS(fSegmentID(0)) 216 SkDEBUGPARAMS(fSegmentID(0))
216 SkDEBUGPARAMS(fSpanID(0)) { 217 SkDEBUGPARAMS(fSpanID(0)) {
217 if (coincidence) { 218 if (coincidence) {
218 coincidence->debugSetGlobalState(this); 219 coincidence->debugSetGlobalState(this);
219 } 220 }
221 #if DEBUG_T_SECT_LOOP_COUNT
222 debugResetLoopCounts();
223 #endif
220 } 224 }
221 225
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsTypes.h ('k') | tests/PathOpsCubicConicIntersectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698