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 "GrSwizzle.h" | 8 #include "GrSwizzle.h" |
9 #include "glsl/GrGLSLShaderBuilder.h" | 9 #include "glsl/GrGLSLShaderBuilder.h" |
10 #include "glsl/GrGLSLCaps.h" | 10 #include "glsl/GrGLSLCaps.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // append the 'footer' to code | 167 // append the 'footer' to code |
168 this->code().append("}"); | 168 this->code().append("}"); |
169 | 169 |
170 for (int i = 0; i <= fCodeIndex; i++) { | 170 for (int i = 0; i <= fCodeIndex; i++) { |
171 fCompilerStrings[i] = fShaderStrings[i].c_str(); | 171 fCompilerStrings[i] = fShaderStrings[i].c_str(); |
172 fCompilerStringLengths[i] = (int)fShaderStrings[i].size(); | 172 fCompilerStringLengths[i] = (int)fShaderStrings[i].size(); |
173 } | 173 } |
174 | 174 |
175 fFinalized = true; | 175 fFinalized = true; |
176 } | 176 } |
177 | |
OLD | NEW |