diff options
Diffstat (limited to 'src/gpu/effects/GrDisableColorXP.h')
-rw-r--r-- | src/gpu/effects/GrDisableColorXP.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gpu/effects/GrDisableColorXP.h b/src/gpu/effects/GrDisableColorXP.h index 821ad2768e..9a829ed5ba 100644 --- a/src/gpu/effects/GrDisableColorXP.h +++ b/src/gpu/effects/GrDisableColorXP.h @@ -24,12 +24,13 @@ public: private: constexpr GrDisableColorXPFactory() {} - bool willReadDstInShader(const GrCaps&, const FragmentProcessorAnalysis&) const override { - return false; + AnalysisProperties analysisProperties(const GrPipelineAnalysisColor&, + const GrPipelineAnalysisCoverage&, + const GrCaps&) const override { + return AnalysisProperties::kCompatibleWithAlphaAsCoverage | + AnalysisProperties::kIgnoresInputColor; } - bool compatibleWithCoverageAsAlpha(bool colorIsOpaque) const override { return true; } - GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, const FragmentProcessorAnalysis&, bool hasMixedSamples, |