Index: src/core/SkPathRef.cpp |
=================================================================== |
--- src/core/SkPathRef.cpp (revision 11792) |
+++ src/core/SkPathRef.cpp (working copy) |
@@ -310,8 +310,10 @@ |
if (!fBoundsIsDirty && !fBounds.isEmpty()) { |
bool isFinite = true; |
for (int i = 0; i < fPointCnt; ++i) { |
- SkASSERT(fPoints[i].fX >= fBounds.fLeft && fPoints[i].fX <= fBounds.fRight && |
- fPoints[i].fY >= fBounds.fTop && fPoints[i].fY <= fBounds.fBottom); |
+ SkASSERT(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); |
if (!fPoints[i].isFinite()) { |
isFinite = false; |
} |