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

Side by Side Diff: src/gpu/gl/GrGLProgram.h

Issue 13095004: Program key coverage/discard fixes. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: minor comment update Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698