Label willReadDstColor argument to GrXferProcessor ctor.

This makes it much easier to search through the code and find places
where `willReadDstColor` is set.

Change-Id: I94077d2ce2cacf35c84f7ff6ba2da3c5c3bab15c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/410677
Auto-Submit: John Stiles <johnstiles@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
John Stiles 2021-05-19 21:38:55 -04:00 committed by Skia Commit-Bot
parent 82c4a69b27
commit 60e52284d5
2 changed files with 5 additions and 4 deletions

View File

@ -78,7 +78,7 @@ public:
, fHWBlendEquation(hwBlendEquation) {}
CustomXP(SkBlendMode mode, GrProcessorAnalysisCoverage coverage)
: INHERITED(kCustomXP_ClassID, true, coverage)
: INHERITED(kCustomXP_ClassID, /*willReadDstColor=*/true, coverage)
, fMode(mode)
, fHWBlendEquation(kIllegal_GrBlendEquation) {
}

View File

@ -374,7 +374,7 @@ static BlendFormula get_lcd_blend_formula(SkBlendMode xfermode) {
class PorterDuffXferProcessor : public GrXferProcessor {
public:
PorterDuffXferProcessor(BlendFormula blendFormula, GrProcessorAnalysisCoverage coverage)
: INHERITED(kPorterDuffXferProcessor_ClassID, false, coverage)
: INHERITED(kPorterDuffXferProcessor_ClassID, /*willReadDstColor=*/false, coverage)
, fBlendFormula(blendFormula) {
}
@ -483,7 +483,7 @@ GrGLSLXferProcessor* PorterDuffXferProcessor::createGLSLInstance() const {
class ShaderPDXferProcessor : public GrXferProcessor {
public:
ShaderPDXferProcessor(SkBlendMode xfermode, GrProcessorAnalysisCoverage coverage)
: INHERITED(kShaderPDXferProcessor_ClassID, true, coverage)
: INHERITED(kShaderPDXferProcessor_ClassID, /*willReadDstColor=*/true, coverage)
, fXfermode(xfermode) {
}
@ -630,7 +630,8 @@ private:
///////////////////////////////////////////////////////////////////////////////
PDLCDXferProcessor::PDLCDXferProcessor(const SkPMColor4f& blendConstant, float alpha)
: INHERITED(kPDLCDXferProcessor_ClassID, false, GrProcessorAnalysisCoverage::kLCD)
: INHERITED(kPDLCDXferProcessor_ClassID, /*willReadDstColor=*/false,
GrProcessorAnalysisCoverage::kLCD)
, fBlendConstant(blendConstant)
, fAlpha(alpha) {
}