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

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

Issue 2438333002: fix one more fuzzer (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 | no next file » | 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 2015 Google Inc. 2 * Copyright 2015 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 "SkOpCoincidence.h" 7 #include "SkOpCoincidence.h"
8 #include "SkOpSegment.h" 8 #include "SkOpSegment.h"
9 #include "SkPathOpsTSect.h" 9 #include "SkPathOpsTSect.h"
10 10
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 s1 = overS->find(seg1o); 857 s1 = overS->find(seg1o);
858 e1 = overE->find(seg1o); 858 e1 = overE->find(seg1o);
859 FAIL_IF(!s1); 859 FAIL_IF(!s1);
860 FAIL_IF(!e1); 860 FAIL_IF(!e1);
861 if (!s1->starter(e1)->span()->upCast()->windValue()) { 861 if (!s1->starter(e1)->span()->upCast()->windValue()) {
862 return true; 862 return true;
863 } 863 }
864 } 864 }
865 const SkOpPtT* s2 = overS->find(seg2); 865 const SkOpPtT* s2 = overS->find(seg2);
866 const SkOpPtT* e2 = overE->find(seg2); 866 const SkOpPtT* e2 = overE->find(seg2);
867 FAIL_IF(!s2);
867 FAIL_IF(!e2); 868 FAIL_IF(!e2);
868 if (!s2->starter(e2)->span()->upCast()->windValue()) { 869 if (!s2->starter(e2)->span()->upCast()->windValue()) {
869 s2 = overS->find(seg2o); 870 s2 = overS->find(seg2o);
870 e2 = overE->find(seg2o); 871 e2 = overE->find(seg2o);
871 FAIL_IF(!s2); 872 FAIL_IF(!s2);
872 FAIL_IF(!e2); 873 FAIL_IF(!e2);
873 if (!s2->starter(e2)->span()->upCast()->windValue()) { 874 if (!s2->starter(e2)->span()->upCast()->windValue()) {
874 return true; 875 return true;
875 } 876 }
876 } 877 }
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 } 1385 }
1385 do { 1386 do {
1386 if (coin->coinPtTStart()->segment() == deleted 1387 if (coin->coinPtTStart()->segment() == deleted
1387 || coin->coinPtTEnd()->segment() == deleted 1388 || coin->coinPtTEnd()->segment() == deleted
1388 || coin->oppPtTStart()->segment() == deleted 1389 || coin->oppPtTStart()->segment() == deleted
1389 || coin->oppPtTEnd()->segment() == deleted) { 1390 || coin->oppPtTEnd()->segment() == deleted) {
1390 this->release(fHead, coin); 1391 this->release(fHead, coin);
1391 } 1392 }
1392 } while ((coin = coin->next())); 1393 } while ((coin = coin->next()));
1393 } 1394 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698