| Index: src/gpu/batches/GrAAFillRectBatch.cpp
|
| diff --git a/src/gpu/batches/GrAAFillRectBatch.cpp b/src/gpu/batches/GrAAFillRectBatch.cpp
|
| index 5b22422e1098b6ff2ebb31c8780c93f4d3f9822d..964610788d7ca5a7a33ed6d427bfef3458674741 100644
|
| --- a/src/gpu/batches/GrAAFillRectBatch.cpp
|
| +++ b/src/gpu/batches/GrAAFillRectBatch.cpp
|
| @@ -332,6 +332,28 @@ GrDrawBatch* Create(GrColor color,
|
| return batch;
|
| }
|
|
|
| +GrDrawBatch* Create(GrColor color,
|
| + const SkMatrix& viewMatrix,
|
| + const SkMatrix& localMatrix,
|
| + const SkRect& rect) {
|
| + SkRect devRect;
|
| + viewMatrix.mapRect(&devRect, rect);
|
| + return Create(color, viewMatrix, localMatrix, rect, devRect);
|
| +}
|
| +
|
| +GrDrawBatch* CreateWithLocalRect(GrColor color,
|
| + const SkMatrix& viewMatrix,
|
| + const SkRect& rect,
|
| + const SkRect& localRect) {
|
| + SkRect devRect;
|
| + viewMatrix.mapRect(&devRect, rect);
|
| + SkMatrix localMatrix;
|
| + if (!localMatrix.setRectToRect(rect, localRect, SkMatrix::kFill_ScaleToFit)) {
|
| + return nullptr;
|
| + }
|
| + return Create(color, viewMatrix, localMatrix, rect, devRect);
|
| +}
|
| +
|
| void Append(GrBatch* origBatch,
|
| GrColor color,
|
| const SkMatrix& viewMatrix,
|
|
|