Index: src/gpu/batches/GrAtlasTextBatch.h |
diff --git a/src/gpu/batches/GrAtlasTextBatch.h b/src/gpu/batches/GrAtlasTextBatch.h |
index 89a2f4e7537f5af0e6b4b4b29c0710ca21c6bde8..32771832aa9c5ce78edb3c35c4facb828314161c 100644 |
--- a/src/gpu/batches/GrAtlasTextBatch.h |
+++ b/src/gpu/batches/GrAtlasTextBatch.h |
@@ -82,9 +82,12 @@ public: |
void init() { |
const Geometry& geo = fGeoData[0]; |
fBatch.fColor = geo.fColor; |
- |
- geo.fBlob->computeSubRunBounds(&fBounds, geo.fRun, geo.fSubRun, geo.fViewMatrix, geo.fX, |
+ SkRect bounds; |
+ geo.fBlob->computeSubRunBounds(&bounds, geo.fRun, geo.fSubRun, geo.fViewMatrix, geo.fX, |
geo.fY); |
+ // We don't have tight bounds on the glyph paths in device space. For the purposes of bounds |
+ // we treat this as a set of non-AA rects rendered with a texture. |
+ this->setBounds(bounds, HasAABloat::kNo, IsZeroArea::kNo); |
} |
const char* name() const override { return "TextBatch"; } |