OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |