Chromium Code Reviews| Index: src/gpu/batches/GrAAFillRectBatch.cpp |
| diff --git a/src/gpu/batches/GrAAFillRectBatch.cpp b/src/gpu/batches/GrAAFillRectBatch.cpp |
| index 8760896604c60c2d99cfc224cbee6c09f1884bb5..65ac861206cb0d99d41c0bb6c31d86783860bf90 100644 |
| --- a/src/gpu/batches/GrAAFillRectBatch.cpp |
| +++ b/src/gpu/batches/GrAAFillRectBatch.cpp |
| @@ -190,6 +190,11 @@ public: |
| inline static const GrIndexBuffer* GetIndexBuffer(GrResourceProvider* rp) { |
|
bsalomon
2015/08/18 20:31:03
Do these all need to be explicitly inline?
|
| return get_index_buffer(rp); |
| } |
| + |
| + template <class Geometry> |
| + inline static void SetBounds(const Geometry& geo, SkRect* outBounds) { |
| + *outBounds = geo.fDevRect; |
| + } |
| }; |
| class AAFillRectBatchNoLocalMatrixImp : public AAFillRectBatchBase { |