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

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

Issue 2338323002: quad and conic do not intersect (Closed)
Patch Set: turn off under development Created 4 years, 3 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/SkPathOpsQuad.cpp ('k') | tests/PathOpsFuzz763Test.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 2014 Google Inc. 2 * Copyright 2014 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 SkPathOpsTSect_DEFINED 7 #ifndef SkPathOpsTSect_DEFINED
8 #define SkPathOpsTSect_DEFINED 8 #define SkPathOpsTSect_DEFINED
9 9
10 #include "SkChunkAlloc.h" 10 #include "SkChunkAlloc.h"
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 #if DEBUG_VALIDATE 788 #if DEBUG_VALIDATE
789 SkASSERT(this != fPrev); 789 SkASSERT(this != fPrev);
790 SkASSERT(this != fNext); 790 SkASSERT(this != fNext);
791 SkASSERT(fNext == nullptr || fNext != fPrev); 791 SkASSERT(fNext == nullptr || fNext != fPrev);
792 SkASSERT(fNext == nullptr || this == fNext->fPrev); 792 SkASSERT(fNext == nullptr || this == fNext->fPrev);
793 SkASSERT(fPrev == nullptr || this == fPrev->fNext); 793 SkASSERT(fPrev == nullptr || this == fPrev->fNext);
794 this->validateBounded(); 794 this->validateBounded();
795 #endif 795 #endif
796 #if DEBUG_T_SECT 796 #if DEBUG_T_SECT
797 SkASSERT(fBounds.width() || fBounds.height() || fCollapsed); 797 SkASSERT(fBounds.width() || fBounds.height() || fCollapsed);
798 SkASSERT(fBoundsMax == SkTMax(fBounds.width(), fBounds.height())); 798 SkASSERT(fBoundsMax == SkTMax(fBounds.width(), fBounds.height()) || fCollaps ed == 0xFF);
799 SkASSERT(0 <= fStartT); 799 SkASSERT(0 <= fStartT);
800 SkASSERT(fEndT <= 1); 800 SkASSERT(fEndT <= 1);
801 SkASSERT(fStartT <= fEndT); 801 SkASSERT(fStartT <= fEndT);
802 SkASSERT(fBounded); 802 SkASSERT(fBounded || fCollapsed == 0xFF);
803 if (fHasPerp) { 803 if (fHasPerp) {
804 if (fCoinStart.isCoincident()) { 804 if (fCoinStart.isCoincident()) {
805 validatePerpT(fCoinStart.perpT()); 805 validatePerpT(fCoinStart.perpT());
806 validatePerpPt(fCoinStart.perpT(), fCoinStart.perpPt()); 806 validatePerpPt(fCoinStart.perpT(), fCoinStart.perpPt());
807 } 807 }
808 if (fCoinEnd.isCoincident()) { 808 if (fCoinEnd.isCoincident()) {
809 validatePerpT(fCoinEnd.perpT()); 809 validatePerpT(fCoinEnd.perpT());
810 validatePerpPt(fCoinEnd.perpT(), fCoinEnd.perpPt()); 810 validatePerpPt(fCoinEnd.perpT(), fCoinEnd.perpPt());
811 } 811 }
812 } 812 }
(...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after
2316 --last; 2316 --last;
2317 } else { 2317 } else {
2318 intersections->setCoincident(index++); 2318 intersections->setCoincident(index++);
2319 } 2319 }
2320 intersections->setCoincident(index); 2320 intersections->setCoincident(index);
2321 } 2321 }
2322 SkASSERT(intersections->used() <= TCurve::kMaxIntersections); 2322 SkASSERT(intersections->used() <= TCurve::kMaxIntersections);
2323 } 2323 }
2324 2324
2325 #endif 2325 #endif
OLDNEW
« no previous file with comments | « src/pathops/SkPathOpsQuad.cpp ('k') | tests/PathOpsFuzz763Test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698