Chromium Code Reviews| Index: src/gpu/batches/GrAtlasTextBatch.h |
| diff --git a/src/gpu/batches/GrAtlasTextBatch.h b/src/gpu/batches/GrAtlasTextBatch.h |
| index 89a2f4e7537f5af0e6b4b4b29c0710ca21c6bde8..f40b41ef9ddceca16893687dd7fb662918df6eef 100644 |
| --- a/src/gpu/batches/GrAtlasTextBatch.h |
| +++ b/src/gpu/batches/GrAtlasTextBatch.h |
| @@ -82,9 +82,10 @@ 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); |
|
robertphillips
2016/07/07 20:26:42
// The AA of the text is contained in the atlased
bsalomon
2016/07/07 23:40:57
Done.
|
| + this->setBounds(bounds, HasAABloat ::kNo, IsZeroArea::kNo); |
| } |
| const char* name() const override { return "TextBatch"; } |