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

Unified Diff: src/gpu/batches/GrTestBatch.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/GrTestBatch.h
diff --git a/src/gpu/batches/GrTestBatch.h b/src/gpu/batches/GrTestBatch.h
index 02881c9668ed2c1d0a78355990a045b625baf52b..a9f6c868d5f3aed59b28600eff1a02943184b83d 100644
--- a/src/gpu/batches/GrTestBatch.h
+++ b/src/gpu/batches/GrTestBatch.h
@@ -26,13 +26,12 @@ public:
virtual const char* name() const override = 0;
- 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(this->geoData(0)->fColor);
- }
-
- void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override {
- out->setUnknownSingleComponent();
+ color->setKnownFourComponents(this->geoData(0)->fColor);
+ coverage->setUnknownSingleComponent();
+ *usePLSDstRead = false;
}
void initBatchTracker(const GrPipelineOptimizations& opt) override {

Powered by Google App Engine
This is Rietveld 408576698