OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "GrGLFullProgramBuilder.h" | 8 #include "GrGLFullProgramBuilder.h" |
9 #include "../GrGLGeometryProcessor.h" | 9 #include "../GrGLGeometryProcessor.h" |
10 #include "../GrGpuGL.h" | 10 #include "../GrGpuGL.h" |
11 | 11 |
12 GrGLFullProgramBuilder::GrGLFullProgramBuilder(GrGpuGL* gpu, | 12 GrGLFullProgramBuilder::GrGLFullProgramBuilder(GrGpuGL* gpu, const GrOptDrawStat
e& optState, |
13 const GrGLProgramDesc& desc) | 13 const GrGLProgramDesc& desc) |
14 : INHERITED(gpu, desc) | 14 : INHERITED(gpu, optState, desc) |
15 , fGLGeometryProcessorEmitter(this) | 15 , fGLGeometryProcessorEmitter(this) |
16 , fGS(this) | 16 , fGS(this) |
17 , fVS(this) { | 17 , fVS(this) { |
18 } | 18 } |
19 | 19 |
20 void | 20 void |
21 GrGLFullProgramBuilder::createAndEmitEffects(const GrGeometryStage* geometryProc
essor, | 21 GrGLFullProgramBuilder::createAndEmitEffects(const GrGeometryStage* geometryProc
essor, |
22 const GrFragmentStage* colorStages[
], | 22 const GrFragmentStage* colorStages[
], |
23 const GrFragmentStage* coverageStag
es[], | 23 const GrFragmentStage* coverageStag
es[], |
24 GrGLSLExpr4* inputColor, | 24 GrGLSLExpr4* inputColor, |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 && (!desc().getHeader().fExperimentalGS | 212 && (!desc().getHeader().fExperimentalGS |
213 || fGS.compileAndAttachShaders(programId, shaderIds)) | 213 || fGS.compileAndAttachShaders(programId, shaderIds)) |
214 #endif | 214 #endif |
215 ; | 215 ; |
216 } | 216 } |
217 | 217 |
218 void GrGLFullProgramBuilder::bindProgramLocations(GrGLuint programId) { | 218 void GrGLFullProgramBuilder::bindProgramLocations(GrGLuint programId) { |
219 fVS.bindProgramLocations(programId); | 219 fVS.bindProgramLocations(programId); |
220 INHERITED::bindProgramLocations(programId); | 220 INHERITED::bindProgramLocations(programId); |
221 } | 221 } |
OLD | NEW |