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

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

Issue 23653059: Mark when effects and programs have vertex code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 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 | « src/gpu/effects/GrVertexEffect.h ('k') | src/gpu/gl/GrGLProgramDesc.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 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
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
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
OLDNEW
« no previous file with comments | « src/gpu/effects/GrVertexEffect.h ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698