OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 | 8 |
9 #ifndef GrGLProgram_DEFINED | 9 #ifndef GrGLProgram_DEFINED |
10 #define GrGLProgram_DEFINED | 10 #define GrGLProgram_DEFINED |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // secondary source is output and what value it holds. | 158 // secondary source is output and what value it holds. |
159 enum DualSrcOutput { | 159 enum DualSrcOutput { |
160 kNone_DualSrcOutput, | 160 kNone_DualSrcOutput, |
161 kCoverage_DualSrcOutput, | 161 kCoverage_DualSrcOutput, |
162 kCoverageISA_DualSrcOutput, | 162 kCoverageISA_DualSrcOutput, |
163 kCoverageISC_DualSrcOutput, | 163 kCoverageISC_DualSrcOutput, |
164 | 164 |
165 kDualSrcOutputCnt | 165 kDualSrcOutputCnt |
166 }; | 166 }; |
167 | 167 |
168 // should the FS discard if the edge-aa coverage is zero (to avoid stenc
il manipulation) | 168 // should the FS discard if the coverage is zero (to avoid stencil manip
ulation) |
169 bool fDiscardIfOutsideEdge; | 169 bool fDiscardIfZeroCoverage; |
170 | 170 |
171 // stripped of bits that don't affect program generation | 171 // stripped of bits that don't affect program generation |
172 GrAttribBindings fAttribBindings; | 172 GrAttribBindings fAttribBindings; |
173 | 173 |
174 /** Non-zero if this stage has an effect */ | 174 /** Non-zero if this stage has an effect */ |
175 GrGLEffect::EffectKey fEffectKeys[GrDrawState::kNumStages]; | 175 GrGLEffect::EffectKey fEffectKeys[GrDrawState::kNumStages]; |
176 | 176 |
177 // To enable experimental geometry shader code (not for use in | 177 // To enable experimental geometry shader code (not for use in |
178 // production) | 178 // production) |
179 #if GR_GL_EXPERIMENTAL_GS | 179 #if GR_GL_EXPERIMENTAL_GS |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 Desc fDesc; | 284 Desc fDesc; |
285 const GrGLContext& fContext; | 285 const GrGLContext& fContext; |
286 | 286 |
287 GrGLUniformManager fUniformManager; | 287 GrGLUniformManager fUniformManager; |
288 UniformHandles fUniformHandles; | 288 UniformHandles fUniformHandles; |
289 | 289 |
290 typedef GrRefCnt INHERITED; | 290 typedef GrRefCnt INHERITED; |
291 }; | 291 }; |
292 | 292 |
293 #endif | 293 #endif |
OLD | NEW |