OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrGLProgramDesc_DEFINED | 8 #ifndef GrGLProgramDesc_DEFINED |
9 #define GrGLProgramDesc_DEFINED | 9 #define GrGLProgramDesc_DEFINED |
10 | 10 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // effects that read the
fragment position. | 151 // effects that read the
fragment position. |
152 // Otherwise, 0. | 152 // Otherwise, 0. |
153 | 153 |
154 // should the FS discard if the coverage is zero (to avoid stencil manip
ulation) | 154 // should the FS discard if the coverage is zero (to avoid stencil manip
ulation) |
155 SkBool8 fDiscardIfZeroCoverage; | 155 SkBool8 fDiscardIfZeroCoverage; |
156 | 156 |
157 uint8_t fColorInput; // casts to enum Col
orInput | 157 uint8_t fColorInput; // casts to enum Col
orInput |
158 uint8_t fCoverageInput; // casts to enum Col
orInput | 158 uint8_t fCoverageInput; // casts to enum Col
orInput |
159 uint8_t fCoverageOutput; // casts to enum Cov
erageOutput | 159 uint8_t fCoverageOutput; // casts to enum Cov
erageOutput |
160 | 160 |
| 161 SkBool8 fHasVertexCode; |
161 SkBool8 fEmitsPointSize; | 162 SkBool8 fEmitsPointSize; |
162 uint8_t fColorFilterXfermode; // casts to enum SkX
fermode::Mode | 163 uint8_t fColorFilterXfermode; // casts to enum SkX
fermode::Mode |
163 | 164 |
164 // To enable experimental geometry shader code (not for use in | 165 // To enable experimental geometry shader code (not for use in |
165 // production) | 166 // production) |
166 #if GR_GL_EXPERIMENTAL_GS | 167 #if GR_GL_EXPERIMENTAL_GS |
167 SkBool8 fExperimentalGS; | 168 SkBool8 fExperimentalGS; |
168 #endif | 169 #endif |
169 | 170 |
170 int8_t fPositionAttributeIndex; | 171 int8_t fPositionAttributeIndex; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 SkAutoSMalloc<kPreAllocSize> fKey; | 217 SkAutoSMalloc<kPreAllocSize> fKey; |
217 bool fInitialized; | 218 bool fInitialized; |
218 | 219 |
219 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Move all | 220 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Move all |
220 // code generation to GrGLShaderBuilder (and maybe add getters rather than f
riending). | 221 // code generation to GrGLShaderBuilder (and maybe add getters rather than f
riending). |
221 friend class GrGLProgram; | 222 friend class GrGLProgram; |
222 friend class GrGLShaderBuilder; | 223 friend class GrGLShaderBuilder; |
223 }; | 224 }; |
224 | 225 |
225 #endif | 226 #endif |
OLD | NEW |