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

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

Issue 1202293002: Move GLSL-specific routines/classes to separate glsl directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rename GrGLGLSL.{cpp,h} Created 5 years, 6 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 "GrGLShaderBuilder.h" 8 #include "GrGLShaderBuilder.h"
9 #include "GrGLProgramBuilder.h" 9 #include "GrGLProgramBuilder.h"
10 #include "GrGLShaderStringBuilder.h" 10 #include "GrGLShaderStringBuilder.h"
11 #include "../GrGLGpu.h" 11 #include "../GrGLGpu.h"
12 #include "../GrGLShaderVar.h" 12 #include "../GrGLShaderVar.h"
13 #include "glsl/GrGLSLCaps.h"
13 14
14 namespace { 15 namespace {
15 void append_texture_lookup(SkString* out, 16 void append_texture_lookup(SkString* out,
16 GrGLGpu* gpu, 17 GrGLGpu* gpu,
17 const char* samplerName, 18 const char* samplerName,
18 const char* coordName, 19 const char* coordName,
19 uint32_t configComponentMask, 20 uint32_t configComponentMask,
20 const char* swizzle, 21 const char* swizzle,
21 GrSLType varyingType = kVec2f_GrSLType) { 22 GrSLType varyingType = kVec2f_GrSLType) {
22 SkASSERT(coordName); 23 SkASSERT(coordName);
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 fFinalized = true; 215 fFinalized = true;
215 216
216 if (!shaderId) { 217 if (!shaderId) {
217 return false; 218 return false;
218 } 219 }
219 220
220 *shaderIds->append() = shaderId; 221 *shaderIds->append() = shaderId;
221 222
222 return true; 223 return true;
223 } 224 }
OLDNEW
« no previous file with comments | « src/gpu/gl/builders/GrGLProgramBuilder.cpp ('k') | src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698