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

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

Issue 824753002: Rename GrGpuGL -> GrGLGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address nit Created 6 years 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/GrGLShaderStringBuilder.cpp ('k') | tests/GLProgramsTest.cpp » ('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 "GrGLVertexShaderBuilder.h" 8 #include "GrGLVertexShaderBuilder.h"
9 #include "GrGLProgramBuilder.h" 9 #include "GrGLProgramBuilder.h"
10 #include "GrGLShaderStringBuilder.h" 10 #include "GrGLShaderStringBuilder.h"
11 #include "../GrGpuGL.h" 11 #include "../GrGLGpu.h"
12 12
13 #define GL_CALL(X) GR_GL_CALL(fProgramBuilder->gpu()->glInterface(), X) 13 #define GL_CALL(X) GR_GL_CALL(fProgramBuilder->gpu()->glInterface(), X)
14 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fProgramBuilder->gpu()->glInterface(), R, X) 14 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fProgramBuilder->gpu()->glInterface(), R, X)
15 15
16 GrGLVertexBuilder::GrGLVertexBuilder(GrGLProgramBuilder* program) 16 GrGLVertexBuilder::GrGLVertexBuilder(GrGLProgramBuilder* program)
17 : INHERITED(program) 17 : INHERITED(program)
18 , fRtAdjustName(NULL) { 18 , fRtAdjustName(NULL) {
19 } 19 }
20 20
21 void GrGLVertexBuilder::addVarying(const char* name, GrGLVarying* v) { 21 void GrGLVertexBuilder::addVarying(const char* name, GrGLVarying* v) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 for (int i = 0; i < fInputs.count(); ++i) { 128 for (int i = 0; i < fInputs.count(); ++i) {
129 const GrGLShaderVar& attr = fInputs[i]; 129 const GrGLShaderVar& attr = fInputs[i];
130 // if attribute already added, don't add it again 130 // if attribute already added, don't add it again
131 if (attr.getName().equals(var.getName())) { 131 if (attr.getName().equals(var.getName())) {
132 return false; 132 return false;
133 } 133 }
134 } 134 }
135 fInputs.push_back(var); 135 fInputs.push_back(var);
136 return true; 136 return true;
137 } 137 }
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLShaderStringBuilder.cpp ('k') | tests/GLProgramsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698