Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: src/gpu/batches/GrTInstanceBatch.h

Issue 1295773003: fill rect batch refactor into separate batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweaks Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/batches/GrBWFillRectBatch.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/batches/GrTInstanceBatch.h
diff --git a/src/gpu/batches/GrTInstanceBatch.h b/src/gpu/batches/GrTInstanceBatch.h
index 420f873d2676f07c51d6714d4f843286a384e670..9690d556436b543bd0646ad9b90b6f4600163029 100644
--- a/src/gpu/batches/GrTInstanceBatch.h
+++ b/src/gpu/batches/GrTInstanceBatch.h
@@ -22,6 +22,10 @@
*
* const char* Name()
*
+ * void InvariantOutputCoverage(GrInitInvariantOutput* out)
+ *
+ * void SetBounds(const Geometry& seedGeometry, SkRect* outBounds)
+ *
* bool CanCombine(const Geometry& mine, const Geometry& theirs,
* const GrPipelineOptimizations&)
*
@@ -50,7 +54,7 @@ public:
}
void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override {
- out->setUnknownSingleComponent();
+ Impl::InitInvariantOutputCoverage(out);
}
void initBatchTracker(const GrPipelineOptimizations& opt) override {
@@ -66,7 +70,7 @@ public:
Geometry* geometry() { return &fGeoData[0]; }
void init() {
const Geometry& geo = fGeoData[0];
- this->setBounds(geo.fDevRect);
+ Impl::SetBounds(geo, &fBounds);
}
private:
« no previous file with comments | « src/gpu/batches/GrBWFillRectBatch.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698