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

Unified Diff: src/gpu/GrProgramDesc.h

Issue 1717393002: Add "sample locations" feature to GrProcessor (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_getmultisamp
Patch Set: assert Created 4 years, 10 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/GrProgramDesc.h
diff --git a/src/gpu/GrProgramDesc.h b/src/gpu/GrProgramDesc.h
index 63e060ee6288f22de3cf1f5cea870a9f06012cfb..53c461ccad6713b7d038acedacf913a2ac197215 100644
--- a/src/gpu/GrProgramDesc.h
+++ b/src/gpu/GrProgramDesc.h
@@ -79,6 +79,9 @@ public:
int8_t fColorEffectCnt;
int8_t fCoverageEffectCnt;
uint8_t fIgnoresCoverage;
+ // Set to uniquely identify the pipeline's sample pattern, or 0 if the shader does not use
+ // sample locations. (We can probably get away with 8 bits here if we ever need more space.)
+ uint16_t fSamplePatternKey;
};
int numColorEffects() const {

Powered by Google App Engine
This is Rietveld 408576698