Index: src/core/SkPathRef.cpp |
diff --git a/src/core/SkPathRef.cpp b/src/core/SkPathRef.cpp |
index 355700265c085874a915ef7b22a0e6c7fc603aef..c66d75b3b217999b6fee70ede7dc85dfaa85a8e7 100644 |
--- a/src/core/SkPathRef.cpp |
+++ b/src/core/SkPathRef.cpp |
@@ -332,20 +332,19 @@ void SkPathRef::validate() const { |
SkASSERT(this->currSize() == |
fFreeSpace + sizeof(SkPoint) * fPointCnt + sizeof(uint8_t) * fVerbCnt); |
-#ifdef SK_DEBUG |
if (!fBoundsIsDirty && !fBounds.isEmpty()) { |
bool isFinite = true; |
for (int i = 0; i < fPointCnt; ++i) { |
- SkASSERT(fBounds.fLeft - fPoints[i].fX < SK_ScalarNearlyZero && |
+ SkASSERT(!fPoints[i].isFinite() || ( |
+ fBounds.fLeft - fPoints[i].fX < SK_ScalarNearlyZero && |
fPoints[i].fX - fBounds.fRight < SK_ScalarNearlyZero && |
fBounds.fTop - fPoints[i].fY < SK_ScalarNearlyZero && |
- fPoints[i].fY - fBounds.fBottom < SK_ScalarNearlyZero); |
+ fPoints[i].fY - fBounds.fBottom < SK_ScalarNearlyZero)); |
if (!fPoints[i].isFinite()) { |
isFinite = false; |
} |
} |
SkASSERT(SkToBool(fIsFinite) == isFinite); |
} |
-#endif |
} |
#endif |