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

Side by Side Diff: src/gpu/gl/builders/GrGLFullProgramBuilder.cpp

Issue 628293002: Plumb OptDrawState down to VertexShaderBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
« no previous file with comments | « src/gpu/gl/builders/GrGLFullProgramBuilder.h ('k') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('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 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
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 }
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLFullProgramBuilder.h ('k') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698