Index: src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
index bb388d7af9ae8f8c89df87d14654fd619ecc362a..80fd54212cc68290da48c68c5006dd2f856b75c4 100644 |
--- a/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
+++ b/src/gpu/batches/GrAADistanceFieldPathRenderer.cpp |
@@ -154,26 +154,26 @@ public: |
const char* name() const override { return "AADistanceFieldPathBatch"; } |
- void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
- out->setKnownFourComponents(fBatch.fColor); |
- } |
- |
- void getInvariantOutputCoverage(GrInitInvariantOutput* out) const override { |
- out->setUnknownSingleComponent(); |
+ void computePipelineOptimizations(GrInitInvariantOutput* color, |
+ GrInitInvariantOutput* coverage, |
+ GrBatchToXPOverrides* overrides) const override { |
+ color->setKnownFourComponents(fBatch.fColor); |
+ coverage->setUnknownSingleComponent(); |
+ overrides->fUsePLSDstRead = false; |
} |
private: |
- void initBatchTracker(const GrPipelineOptimizations& opt) override { |
+ void initBatchTracker(const GrXPOverridesForBatch& overrides) override { |
// Handle any color overrides |
- if (!opt.readsColor()) { |
+ if (!overrides.readsColor()) { |
fBatch.fColor = GrColor_ILLEGAL; |
} |
- opt.getOverrideColorIfSet(&fBatch.fColor); |
+ overrides.getOverrideColorIfSet(&fBatch.fColor); |
// setup batch properties |
- fBatch.fColorIgnored = !opt.readsColor(); |
- fBatch.fUsesLocalCoords = opt.readsLocalCoords(); |
- fBatch.fCoverageIgnored = !opt.readsCoverage(); |
+ fBatch.fColorIgnored = !overrides.readsColor(); |
+ fBatch.fUsesLocalCoords = overrides.readsLocalCoords(); |
+ fBatch.fCoverageIgnored = !overrides.readsCoverage(); |
} |
struct FlushInfo { |