Index: src/core/SkRecordDraw.cpp |
diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp |
index aa3e8de95ac821e2ce7d0578d920f3b67fe6455f..db4e87fbcee70cbeecb56d6d86e207aeb29b428c 100644 |
--- a/src/core/SkRecordDraw.cpp |
+++ b/src/core/SkRecordDraw.cpp |
@@ -326,7 +326,9 @@ private: |
correct.fTop += metrics.fTop; |
correct.fRight += metrics.fXMax; |
correct.fBottom += metrics.fBottom; |
- SkASSERTF(rect->contains(correct), "%f %f %f %f vs. %f %f %f %f\n", |
+ // See skia:2862 for why we ignore small text sizes. |
+ SkASSERTF(paint.getTextSize() < 0.001f || rect->contains(correct), |
+ "%f %f %f %f vs. %f %f %f %f\n", |
-xPad, -yPad, +xPad, +yPad, |
metrics.fXMin, metrics.fTop, metrics.fXMax, metrics.fBottom); |
#endif |