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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ColorInput fColorInput : 8; | 157 ColorInput fColorInput : 8; |
158 ColorInput fCoverageInput : 8; | 158 ColorInput fCoverageInput : 8; |
159 CoverageOutput fCoverageOutput : 8; | 159 CoverageOutput fCoverageOutput : 8; |
160 | 160 |
161 SkBool8 fHasVertexCode; | 161 SkBool8 fHasVertexCode; |
162 SkBool8 fEmitsPointSize; | 162 SkBool8 fEmitsPointSize; |
163 SkXfermode::Mode fColorFilterXfermode : 8; | |
164 | 163 |
165 // To enable experimental geometry shader code (not for use in | 164 // To enable experimental geometry shader code (not for use in |
166 // production) | 165 // production) |
167 #if GR_GL_EXPERIMENTAL_GS | 166 #if GR_GL_EXPERIMENTAL_GS |
168 SkBool8 fExperimentalGS; | 167 SkBool8 fExperimentalGS; |
169 #endif | 168 #endif |
170 | 169 |
171 int8_t fPositionAttributeIndex; | 170 int8_t fPositionAttributeIndex; |
172 int8_t fLocalCoordAttributeIndex; | 171 int8_t fLocalCoordAttributeIndex; |
173 int8_t fColorAttributeIndex; | 172 int8_t fColorAttributeIndex; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 218 |
220 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Move all | 219 // GrGLProgram and GrGLShaderBuilder read the private fields to generate cod
e. TODO: Move all |
221 // code generation to GrGLShaderBuilder (and maybe add getters rather than f
riending). | 220 // code generation to GrGLShaderBuilder (and maybe add getters rather than f
riending). |
222 friend class GrGLProgram; | 221 friend class GrGLProgram; |
223 friend class GrGLShaderBuilder; | 222 friend class GrGLShaderBuilder; |
224 friend class GrGLFullShaderBuilder; | 223 friend class GrGLFullShaderBuilder; |
225 friend class GrGLFragmentOnlyShaderBuilder; | 224 friend class GrGLFragmentOnlyShaderBuilder; |
226 }; | 225 }; |
227 | 226 |
228 #endif | 227 #endif |
OLD | NEW |