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

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

Issue 1431433003: Move shader compiling to ProgramBuilder and various ShaderBuilder cleanups. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: nits Created 5 years, 1 month 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
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 "GrGLGeometryShaderBuilder.h" 8 #include "GrGLGeometryShaderBuilder.h"
9 #include "GrGLProgramBuilder.h" 9 #include "GrGLProgramBuilder.h"
10 #include "../GrGLGpu.h" 10 #include "../GrGLGpu.h"
(...skipping 19 matching lines...) Expand all
30 if (v->fsVarying()) { 30 if (v->fsVarying()) {
31 fOutputs.push_back(); 31 fOutputs.push_back();
32 fOutputs.back().setType(v->fType); 32 fOutputs.back().setType(v->fType);
33 fOutputs.back().setTypeModifier(GrGLSLShaderVar::kVaryingOut_TypeModifie r); 33 fOutputs.back().setTypeModifier(GrGLSLShaderVar::kVaryingOut_TypeModifie r);
34 fOutputs.back().setPrecision(precision); 34 fOutputs.back().setPrecision(precision);
35 fProgramBuilder->nameVariable(fOutputs.back().accessName(), 'g', name); 35 fProgramBuilder->nameVariable(fOutputs.back().accessName(), 'g', name);
36 v->fGsOut = fOutputs.back().getName().c_str(); 36 v->fGsOut = fOutputs.back().getName().c_str();
37 } 37 }
38 } 38 }
39 39
40 bool GrGLGeometryBuilder::compileAndAttachShaders(GrGLuint programId,
41 SkTDArray<GrGLuint>* shaderIds) {
42 SkFAIL("Geometry shaders are not currently supported");
43 return false;
44 }
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLGeometryShaderBuilder.h ('k') | src/gpu/gl/builders/GrGLProgramBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698