diff options
author | 2015-08-19 06:54:08 -0700 | |
---|---|---|
committer | 2015-08-19 06:54:08 -0700 | |
commit | ae41b3834301444cf27b8aa729b8ad36666bdc08 (patch) | |
tree | 9e516e7aa00b8f3ad554eb367729754233d62172 /src/gpu/batches/GrTInstanceBatch.h | |
parent | 6458b6f0a8e8b1e16ec1640d17fe28ab05c8a95b (diff) |
fill rect batch refactor into separate batches
BUG=skia:
Review URL: https://codereview.chromium.org/1295773003
Diffstat (limited to 'src/gpu/batches/GrTInstanceBatch.h')
-rw-r--r-- | src/gpu/batches/GrTInstanceBatch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/batches/GrTInstanceBatch.h b/src/gpu/batches/GrTInstanceBatch.h index 420f873d26..84d857e99e 100644 --- a/src/gpu/batches/GrTInstanceBatch.h +++ b/src/gpu/batches/GrTInstanceBatch.h @@ -22,6 +22,8 @@ * * const char* Name() * + * void SetBounds(const Geometry& seedGeometry, SkRect* outBounds) + * * bool CanCombine(const Geometry& mine, const Geometry& theirs, * const GrPipelineOptimizations&) * @@ -66,7 +68,7 @@ public: Geometry* geometry() { return &fGeoData[0]; } void init() { const Geometry& geo = fGeoData[0]; - this->setBounds(geo.fDevRect); + Impl::SetBounds(geo, &fBounds); } private: |