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

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

Issue 2250413002: fix fuzz (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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 | tests/PathOpsSimplifyFailTest.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 "SkAddIntersections.h" 7 #include "SkAddIntersections.h"
8 #include "SkOpCoincidence.h" 8 #include "SkOpCoincidence.h"
9 #include "SkOpEdgeBuilder.h" 9 #include "SkOpEdgeBuilder.h"
10 #include "SkPathOpsCommon.h" 10 #include "SkPathOpsCommon.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 #endif 117 #endif
118 return last->segment(); 118 return last->segment();
119 } 119 }
120 if (done) { 120 if (done) {
121 continue; 121 continue;
122 } 122 }
123 // find first angle, initialize winding to computed wind sum 123 // find first angle, initialize winding to computed wind sum
124 int winding; 124 int winding;
125 bool sortable; 125 bool sortable;
126 const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sor table); 126 const SkOpAngle* angle = AngleWinding(*startPtr, *endPtr, &winding, &sor table);
127 if (!angle) {
128 return nullptr;
129 }
127 if (winding == SK_MinS32) { 130 if (winding == SK_MinS32) {
128 continue; 131 continue;
129 } 132 }
130 int sumWinding SK_INIT_TO_AVOID_WARNING; 133 int sumWinding SK_INIT_TO_AVOID_WARNING;
131 if (sortable) { 134 if (sortable) {
132 segment = angle->segment(); 135 segment = angle->segment();
133 sumWinding = segment->updateWindingReverse(angle); 136 sumWinding = segment->updateWindingReverse(angle);
134 } 137 }
135 SkOpSegment* first = nullptr; 138 SkOpSegment* first = nullptr;
136 const SkOpAngle* firstAngle = angle; 139 const SkOpAngle* firstAngle = angle;
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 } 583 }
581 #if DEBUG_COINCIDENCE_VERBOSE 584 #if DEBUG_COINCIDENCE_VERBOSE
582 coincidence->debugShowCoincidence(); 585 coincidence->debugShowCoincidence();
583 #endif 586 #endif
584 #if DEBUG_COINCIDENCE 587 #if DEBUG_COINCIDENCE
585 coincidence->debugValidate(); 588 coincidence->debugValidate();
586 #endif 589 #endif
587 SkPathOpsDebug::ShowActiveSpans(contourList); 590 SkPathOpsDebug::ShowActiveSpans(contourList);
588 return true; 591 return true;
589 } 592 }
OLDNEW
« no previous file with comments | « no previous file | tests/PathOpsSimplifyFailTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698