Chromium Code Reviews| Index: src/gpu/GrProcOptInfo.h |
| diff --git a/src/gpu/GrProcOptInfo.h b/src/gpu/GrProcOptInfo.h |
| index 059bca4dd8b8762b9879e95eb7c2d90844f0dd98..9b3076fffb9f528ff19fedd69534bb319d30c020 100644 |
| --- a/src/gpu/GrProcOptInfo.h |
| +++ b/src/gpu/GrProcOptInfo.h |
| @@ -29,7 +29,8 @@ public: |
| , fFirstEffectStageIndex(0) |
| , fInputColorIsUsed(true) |
| , fInputColor(0) |
| - , fReadsFragPosition(false) {} |
| + , fReadsFragPosition(false) |
| + , fNeedsCoverageModulation(false) {} |
| void calcWithInitialValues(const GrFragmentStage*, int stageCount, GrColor startColor, |
| GrColorComponentFlags flags, bool areCoverageStages); |
| @@ -53,6 +54,12 @@ public: |
| bool isFourChannelOutput() const { return !fInOut.isSingleComponent() && |
| fInOut.isLCDCoverage(); } |
| + bool needsCoverageModulation() const { return fNeedsCoverageModulation; } |
| + |
| + void setNeedsCoverageModulation(bool modulate) { |
| + fNeedsCoverageModulation = true; |
|
Chris Dalton
2015/03/23 19:15:37
Oops, this looks like a bug we've glossed over in
|
| + } |
| + |
| GrColor color() const { return fInOut.color(); } |
| uint8_t validFlags() const { return fInOut.validFlags(); } |
| @@ -92,6 +99,7 @@ private: |
| bool fInputColorIsUsed; |
| GrColor fInputColor; |
| bool fReadsFragPosition; |
| + bool fNeedsCoverageModulation; |
| }; |
| #endif |