Index: src/gpu/GrProcOptInfo.h |
diff --git a/src/gpu/GrProcOptInfo.h b/src/gpu/GrProcOptInfo.h |
index 059bca4dd8b8762b9879e95eb7c2d90844f0dd98..71a78a2fb3d79f1d2b04eb25c22fde3eeee70fcb 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) |
+ , fHasMixedSamplesModulation(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 hasMixedSamplesModulation() const { return fHasMixedSamplesModulation; } |
+ |
+ void setHasMixedSamplesModulation(bool modulate) { |
+ fHasMixedSamplesModulation = modulate; |
+ } |
+ |
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 fHasMixedSamplesModulation; |
}; |
#endif |