Index: src/pathops/SkPathOpsTSect.h |
diff --git a/src/pathops/SkPathOpsTSect.h b/src/pathops/SkPathOpsTSect.h |
index 70ee8ababd3c84d74100cee05ed5979a2ee954ad..6ae6ee528f4686cbcac2fe41e5048415d1e2fffa 100644 |
--- a/src/pathops/SkPathOpsTSect.h |
+++ b/src/pathops/SkPathOpsTSect.h |
@@ -795,11 +795,11 @@ void SkTSpan<TCurve, OppCurve>::validate() const { |
#endif |
#if DEBUG_T_SECT |
SkASSERT(fBounds.width() || fBounds.height() || fCollapsed); |
- SkASSERT(fBoundsMax == SkTMax(fBounds.width(), fBounds.height())); |
+ SkASSERT(fBoundsMax == SkTMax(fBounds.width(), fBounds.height()) || fCollapsed == 0xFF); |
SkASSERT(0 <= fStartT); |
SkASSERT(fEndT <= 1); |
SkASSERT(fStartT <= fEndT); |
- SkASSERT(fBounded); |
+ SkASSERT(fBounded || fCollapsed == 0xFF); |
if (fHasPerp) { |
if (fCoinStart.isCoincident()) { |
validatePerpT(fCoinStart.perpT()); |