| Index: src/gpu/effects/GrPorterDuffXferProcessor.cpp
|
| diff --git a/src/gpu/effects/GrPorterDuffXferProcessor.cpp b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
|
| index 4453c8935d84ec84c190b7be33f0737c31539371..d9c458d9a6baee99a3df844ba2139c87af5fa5b0 100644
|
| --- a/src/gpu/effects/GrPorterDuffXferProcessor.cpp
|
| +++ b/src/gpu/effects/GrPorterDuffXferProcessor.cpp
|
| @@ -402,7 +402,8 @@ PorterDuffXferProcessor::internalGetOptimizations(const GrProcOptInfo& colorPOI,
|
| // has to read at all. If not, we'll disable blending.
|
| if (!hasCoverage) {
|
| if (dstCoeffIsZero) {
|
| - if (kOne_GrBlendCoeff == fSrcBlend) {
|
| + if (kOne_GrBlendCoeff == fSrcBlend &&
|
| + !colorPOI.needsCoverageModulation()) {
|
| // if there is no coverage and coeffs are (1,0) then we
|
| // won't need to read the dst at all, it gets replaced by src
|
| fDstBlend = kZero_GrBlendCoeff;
|
|
|