Index: src/gpu/batches/GrAAConvexPathRenderer.cpp |
diff --git a/src/gpu/batches/GrAAConvexPathRenderer.cpp b/src/gpu/batches/GrAAConvexPathRenderer.cpp |
index aee18b720a6a2ef03825f089ee4236dacd2ab92a..79296e3c3e15310f1badfb2b871fca2966843e33 100644 |
--- a/src/gpu/batches/GrAAConvexPathRenderer.cpp |
+++ b/src/gpu/batches/GrAAConvexPathRenderer.cpp |
@@ -752,29 +752,30 @@ public: |
const char* name() const override { return "AAConvexBatch"; } |
- void getInvariantOutputColor(GrInitInvariantOutput* out) const override { |
+ void computePipelineOptimizations(GrInitInvariantOutput* color, |
+ GrInitInvariantOutput* coverage, |
+ GrBatchToXPOverrides* overrides) const override { |
// 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->setUnknownSingleComponent(); |
+ color->setKnownFourComponents(fGeoData[0].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()) { |
fGeoData[0].fColor = GrColor_ILLEGAL; |
} |
- opt.getOverrideColorIfSet(&fGeoData[0].fColor); |
+ overrides.getOverrideColorIfSet(&fGeoData[0].fColor); |
// setup batch properties |
- fBatch.fColorIgnored = !opt.readsColor(); |
+ fBatch.fColorIgnored = !overrides.readsColor(); |
fBatch.fColor = fGeoData[0].fColor; |
- fBatch.fUsesLocalCoords = opt.readsLocalCoords(); |
- fBatch.fCoverageIgnored = !opt.readsCoverage(); |
+ fBatch.fUsesLocalCoords = overrides.readsLocalCoords(); |
+ fBatch.fCoverageIgnored = !overrides.readsCoverage(); |
fBatch.fLinesOnly = SkPath::kLine_SegmentMask == fGeoData[0].fPath.getSegmentMasks(); |
- fBatch.fCanTweakAlphaForCoverage = opt.canTweakAlphaForCoverage(); |
+ fBatch.fCanTweakAlphaForCoverage = overrides.canTweakAlphaForCoverage(); |
} |
void prepareLinesOnlyDraws(Target* target) { |