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

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

Issue 25023003: Implement color filter as GrGLEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: address review comments Created 7 years, 2 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/gl/GrGLProgram.cpp ('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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698