OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |