diff options
Diffstat (limited to 'src/gpu/batches/GrDrawAtlasBatch.cpp')
-rw-r--r-- | src/gpu/batches/GrDrawAtlasBatch.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/batches/GrDrawAtlasBatch.cpp b/src/gpu/batches/GrDrawAtlasBatch.cpp index 9a8952fa3a..6f1bfedfec 100644 --- a/src/gpu/batches/GrDrawAtlasBatch.cpp +++ b/src/gpu/batches/GrDrawAtlasBatch.cpp @@ -159,10 +159,7 @@ GrDrawAtlasBatch::GrDrawAtlasBatch(GrColor color, const SkMatrix& viewMatrix, in currVertex += vertexStride; } - viewMatrix.mapRect(&bounds); - // Outset for a half pixel in each direction to account for snapping in non-AA case - bounds.outset(0.5f, 0.5f); - this->setBounds(bounds); + this->setTransformedBounds(bounds, viewMatrix, HasAABloat::kNo, IsZeroArea::kNo); } bool GrDrawAtlasBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) { @@ -192,7 +189,7 @@ bool GrDrawAtlasBatch::onCombineIfPossible(GrBatch* t, const GrCaps& caps) { fGeoData.push_back_n(that->fGeoData.count(), that->fGeoData.begin()); fQuadCount += that->quadCount(); - this->joinBounds(that->bounds()); + this->joinBounds(*that); return true; } |