| Index: src/gpu/GrDrawState.cpp
|
| diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
|
| index 90188ea788fefd598adc1d1c7d6a02e94f68c2d7..591e157129af4aa7846cda18bf949ec4f8e04861 100644
|
| --- a/src/gpu/GrDrawState.cpp
|
| +++ b/src/gpu/GrDrawState.cpp
|
| @@ -163,6 +163,16 @@ bool GrDrawState::validateVertexAttribs() const {
|
| return true;
|
| }
|
|
|
| +bool GrDrawState::willEffectReadDstColor() const {
|
| + int startStage = this->isColorWriteDisabled() ? this->getFirstCoverageStage() : 0;
|
| + for (int s = startStage; s < kNumStages; ++s) {
|
| + if (this->isStageEnabled(s) && (*this->getStage(s).getEffect())->willReadDstColor()) {
|
| + return true;
|
| + }
|
| + }
|
| + return false;
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| bool GrDrawState::srcAlphaWillBeOne() const {
|
|
|