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

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

Issue 1467553002: New API for computing optimization invariants. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 1 month 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
Index: src/gpu/batches/GrTInstanceBatch.h
diff --git a/src/gpu/batches/GrTInstanceBatch.h b/src/gpu/batches/GrTInstanceBatch.h
index 5dc5988e58a6d0d930fa6cf287bb3daa81802b4c..9bde4441ede01732ebec3ef0e1fa7f34b291295b 100644
--- a/src/gpu/batches/GrTInstanceBatch.h
+++ b/src/gpu/batches/GrTInstanceBatch.h
@@ -59,13 +59,12 @@ public:
return str;
}
- void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
+ void computeBatchToXPOverrides(GrInitInvariantOutput* color, GrInitInvariantOutput* coverage,
+ bool* usePLSDstRead) const {
// When this is called on a batch, there is only one geometry bundle
- out->setKnownFourComponents(fGeoData[0].fColor);
- }
-
- void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override {
- Impl::InitInvariantOutputCoverage(out);
+ color->setKnownFourComponents(fGeoData[0].fColor);
+ Impl::InitInvariantOutputCoverage(coverage);
+ *usePLSDstRead = false;
}
void initBatchTracker(const GrPipelineOptimizations& opt) override {

Powered by Google App Engine
This is Rietveld 408576698