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