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

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

Issue 576543005: Breaking out full program and frag only (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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 "GrGLFullProgramBuilder.h"
9 #include "GrGLProgramBuilder.h" 10 #include "GrGLProgramBuilder.h"
10 #include "../GrGpuGL.h" 11 #include "../GrGpuGL.h"
11 #include "../GrGLShaderVar.h" 12 #include "../GrGLShaderVar.h"
12 13
13 namespace { 14 namespace {
14 inline const char* sample_function_name(GrSLType type, GrGLSLGeneration glslGen) { 15 inline const char* sample_function_name(GrSLType type, GrGLSLGeneration glslGen) {
15 if (kVec2f_GrSLType == type) { 16 if (kVec2f_GrSLType == type) {
16 return glslGen >= k130_GrGLSLGeneration ? "texture" : "texture2D"; 17 return glslGen >= k130_GrGLSLGeneration ? "texture" : "texture2D";
17 } else { 18 } else {
18 SkASSERT(kVec3f_GrSLType == type); 19 SkASSERT(kVec3f_GrSLType == type);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 coordName, 153 coordName,
153 configComponentMask, 154 configComponentMask,
154 swizzle, 155 swizzle,
155 kVec2f_GrSLType); 156 kVec2f_GrSLType);
156 } 157 }
157 158
158 //////////////////////////////////////////////////////////////////////////////// /////////////////// 159 //////////////////////////////////////////////////////////////////////////////// ///////////////////
159 GrGLFullShaderBuilder::GrGLFullShaderBuilder(GrGLFullProgramBuilder* program) 160 GrGLFullShaderBuilder::GrGLFullShaderBuilder(GrGLFullProgramBuilder* program)
160 : INHERITED(program) 161 : INHERITED(program)
161 , fFullProgramBuilder(program) {} 162 , fFullProgramBuilder(program) {}
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