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

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

Issue 824753002: Rename GrGpuGL -> GrGLGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address nit Created 5 years, 12 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
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 "GrGLShaderStringBuilder.h" 9 #include "GrGLShaderStringBuilder.h"
10 #include "GrGLProgramBuilder.h" 10 #include "GrGLProgramBuilder.h"
11 #include "../GrGpuGL.h" 11 #include "../GrGLGpu.h"
12 12
13 GrGLGeometryBuilder::GrGLGeometryBuilder(GrGLProgramBuilder* program) 13 GrGLGeometryBuilder::GrGLGeometryBuilder(GrGLProgramBuilder* program)
14 : INHERITED(program) { 14 : INHERITED(program) {
15 15
16 } 16 }
17 17
18 void GrGLGeometryBuilder::addVarying(const char* name, GrGLVarying* v) { 18 void GrGLGeometryBuilder::addVarying(const char* name, GrGLVarying* v) {
19 // if we have a GS take each varying in as an array 19 // if we have a GS take each varying in as an array
20 // and output as non-array. 20 // and output as non-array.
21 if (v->vsVarying()) { 21 if (v->vsVarying()) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 GrGLuint geomShaderId = 62 GrGLuint geomShaderId =
63 GrGLCompileAndAttachShader(glCtx, programId, 63 GrGLCompileAndAttachShader(glCtx, programId,
64 GR_GL_GEOMETRY_SHADER, geomShaderSrc, 64 GR_GL_GEOMETRY_SHADER, geomShaderSrc,
65 fProgramBuilder->gpu()->gpuStats()); 65 fProgramBuilder->gpu()->gpuStats());
66 if (!geomShaderId) { 66 if (!geomShaderId) {
67 return false; 67 return false;
68 } 68 }
69 *shaderIds->append() = geomShaderId; 69 *shaderIds->append() = geomShaderId;
70 return true; 70 return true;
71 } 71 }
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp ('k') | src/gpu/gl/builders/GrGLLegacyNvprProgramBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698