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

Unified Diff: src/gpu/batches/GrNonAAStrokeRectBatch.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/GrNonAAStrokeRectBatch.cpp
diff --git a/src/gpu/batches/GrNonAAStrokeRectBatch.cpp b/src/gpu/batches/GrNonAAStrokeRectBatch.cpp
index a5de607c8192223848eda55ad672038b30a46ebc..b50bbee30b93d404a88438c2a860153b8eb91b46 100644
--- a/src/gpu/batches/GrNonAAStrokeRectBatch.cpp
+++ b/src/gpu/batches/GrNonAAStrokeRectBatch.cpp
@@ -54,13 +54,12 @@ public:
const char* name() const override { return "GrStrokeRectBatch"; }
- 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 {
- out->setKnownSingleComponent(0xff);
+ color->setKnownFourComponents(fGeoData[0].fColor);
+ coverage->setKnownSingleComponent(0xff);
+ *usePLSDstRead = false;
}
void append(GrColor color, const SkMatrix& viewMatrix, const SkRect& rect,

Powered by Google App Engine
This is Rietveld 408576698