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

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

Issue 25023003: Implement color filter as GrGLEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 GrGLSLExpr<4> genInputCoverage(GrGLShaderBuilder* builder); 177 GrGLSLExpr<4> genInputCoverage(GrGLShaderBuilder* builder);
178 178
179 void genGeometryShader(GrGLShaderBuilder::VertexBuilder* vertexBuilder) cons t; 179 void genGeometryShader(GrGLShaderBuilder::VertexBuilder* vertexBuilder) cons t;
180 180
181 // Creates a set of GrGLEffects and GrGLDrawEffects. 181 // Creates a set of GrGLEffects and GrGLDrawEffects.
182 void buildGLEffects(SkTArray<EffectAndSamplers> GrGLProgram::* effectSet, 182 void buildGLEffects(SkTArray<EffectAndSamplers> GrGLProgram::* effectSet,
183 const GrEffectStage* stages[], 183 const GrEffectStage* stages[],
184 int count, 184 int count,
185 bool hasExplicitLocalCoords, 185 bool hasExplicitLocalCoords,
186 SkTArray<GrDrawEffect>* drawEffects, 186 SkTArray<GrDrawEffect>* drawEffects,
187 bool* hasVertexShaderEffects); 187 bool* hasVertexShaderEffects,
188 bool* willUseInputColor);
188 189
189 // Creates a GL program ID, binds shader attributes to GL vertex attrs, and links the program 190 // Creates a GL program ID, binds shader attributes to GL vertex attrs, and links the program
190 bool bindOutputsAttribsAndLinkProgram(const GrGLShaderBuilder& builder, 191 bool bindOutputsAttribsAndLinkProgram(const GrGLShaderBuilder& builder,
191 bool bindColorOut, 192 bool bindColorOut,
192 bool bindDualSrcOut); 193 bool bindDualSrcOut);
193 194
194 // Sets the texture units for samplers 195 // Sets the texture units for samplers
195 void initSamplerUniforms(); 196 void initSamplerUniforms();
196 void initEffectSamplerUniforms(EffectAndSamplers* effect, int* texUnitIdx); 197 void initEffectSamplerUniforms(EffectAndSamplers* effect, int* texUnitIdx);
197 198
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 GrGLProgramDesc fDesc; 231 GrGLProgramDesc fDesc;
231 GrGpuGL* fGpu; 232 GrGpuGL* fGpu;
232 233
233 GrGLUniformManager fUniformManager; 234 GrGLUniformManager fUniformManager;
234 UniformHandles fUniformHandles; 235 UniformHandles fUniformHandles;
235 236
236 typedef SkRefCnt INHERITED; 237 typedef SkRefCnt INHERITED;
237 }; 238 };
238 239
239 #endif 240 #endif
OLDNEW
« no previous file with comments | « src/gpu/SkGpuDevice.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | src/gpu/gl/GrGLProgram.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698