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

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: Handle numSamples cases in SkGpuDevice Created 5 years, 8 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..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

Powered by Google App Engine
This is Rietveld 408576698