Index: src/gpu/batches/GrAtlasTextBatch.cpp |
diff --git a/src/gpu/batches/GrAtlasTextBatch.cpp b/src/gpu/batches/GrAtlasTextBatch.cpp |
index 3c4b4a5135b118a64c27be450174bea084eced67..6427bc0844e46ebc152f1b20478849e690ee6b4f 100644 |
--- a/src/gpu/batches/GrAtlasTextBatch.cpp |
+++ b/src/gpu/batches/GrAtlasTextBatch.cpp |
@@ -158,7 +158,7 @@ void GrAtlasTextBatch::onPrepareDraws(Target* target) const { |
args.fViewMatrix.mapRect(&rect); |
} |
// Allow for small numerical error in the bounds. |
- SkRect bounds = fBounds; |
+ SkRect bounds = this->bounds(); |
bounds.outset(0.001f, 0.001f); |
SkASSERT(bounds.contains(rect)); |
#endif |
@@ -239,7 +239,7 @@ bool GrAtlasTextBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) { |
that->fGeoCount = 0; |
fGeoCount = newGeoCount; |
- this->joinBounds(that->bounds()); |
+ this->joinBounds(*that); |
return true; |
} |