Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Unified Diff: src/gpu/GrProcOptInfo.h

Issue 1001503002: Implement support for mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@mix1
Patch Set: PipelineStage enum relocation Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
+ }
+
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

Powered by Google App Engine
This is Rietveld 408576698