Index: src/gpu/batches/GrAtlasTextBatch.cpp |
diff --git a/src/gpu/batches/GrAtlasTextBatch.cpp b/src/gpu/batches/GrAtlasTextBatch.cpp |
index 03b3ad03632dc808759dbd5c1628cd62a43d637d..b23a4ccd7be380ae2860ef81cc50383947e6a350 100644 |
--- a/src/gpu/batches/GrAtlasTextBatch.cpp |
+++ b/src/gpu/batches/GrAtlasTextBatch.cpp |
@@ -164,7 +164,10 @@ void GrAtlasTextBatch::onPrepareDraws(Target* target) const { |
if (this->usesDistanceFields()) { |
args.fViewMatrix.mapRect(&rect); |
} |
- SkASSERT(fBounds.contains(rect)); |
+ // Allow for small numerical error in the bounds. |
+ SkRect bounds = fBounds; |
+ bounds.outset(0.001f, 0.001f); |
+ SkASSERT(bounds.contains(rect)); |
#endif |
currVertex += byteCount; |