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/GrNinePatch.cpp

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/GrNinePatch.cpp
diff --git a/src/gpu/batches/GrNinePatch.cpp b/src/gpu/batches/GrNinePatch.cpp
index 999e1fd1562dbbeb54d42d5085e00f5a7211cee7..4b371b1a2544453ae9e7dc712ed1b21420956ea2 100644
--- a/src/gpu/batches/GrNinePatch.cpp
+++ b/src/gpu/batches/GrNinePatch.cpp
@@ -74,12 +74,11 @@ public:
return str;
}
- void getInvariantOutputColor(GrInitInvariantOutput* out) const override {
- out->setUnknownFourComponents();
- }
-
- void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override {
- out->setKnownSingleComponent(0xff);
+ void computeBatchToXPOverrides(GrInitInvariantOutput* color, GrInitInvariantOutput* coverage,
+ bool* usePLSDstRead) const {
+ color->setUnknownFourComponents();
+ coverage->setKnownSingleComponent(0xff);
+ *usePLSDstRead = false;
}
SkSTArray<1, Geometry, true>* geoData() { return &fGeoData; }

Powered by Google App Engine
This is Rietveld 408576698