OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // Resets the program. | 189 // Resets the program. |
190 void Reset(); | 190 void Reset(); |
191 | 191 |
192 // Updates the program info after a successful link. | 192 // Updates the program info after a successful link. |
193 void Update(); | 193 void Update(); |
194 | 194 |
195 // Updates the program log info from GL | 195 // Updates the program log info from GL |
196 void UpdateLogInfo(); | 196 void UpdateLogInfo(); |
197 | 197 |
198 const UniformInfo* AddUniformInfo( | 198 const UniformInfo* AddUniformInfo( |
199 GLsizei size, GLenum type, GLint location, const std::string& name); | 199 GLsizei size, GLenum type, GLint location, const std::string& name, |
| 200 const std::string& original_name); |
200 | 201 |
201 void GetCorrectedVariableInfo( | 202 void GetCorrectedVariableInfo( |
202 bool use_uniforms, const std::string& name, std::string* corrected_name, | 203 bool use_uniforms, const std::string& name, std::string* corrected_name, |
203 GLsizei* size, GLenum* type) const; | 204 std::string* original_name, GLsizei* size, GLenum* type) const; |
204 | 205 |
205 void DetachShaders(ShaderManager* manager); | 206 void DetachShaders(ShaderManager* manager); |
206 | 207 |
207 int use_count_; | 208 int use_count_; |
208 | 209 |
209 GLsizei max_attrib_name_length_; | 210 GLsizei max_attrib_name_length_; |
210 | 211 |
211 // Attrib by index. | 212 // Attrib by index. |
212 AttribInfoVector attrib_infos_; | 213 AttribInfoVector attrib_infos_; |
213 | 214 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 void RemoveProgramInfoIfUnused( | 281 void RemoveProgramInfoIfUnused( |
281 ShaderManager* shader_manager, ProgramInfo* info); | 282 ShaderManager* shader_manager, ProgramInfo* info); |
282 | 283 |
283 DISALLOW_COPY_AND_ASSIGN(ProgramManager); | 284 DISALLOW_COPY_AND_ASSIGN(ProgramManager); |
284 }; | 285 }; |
285 | 286 |
286 } // namespace gles2 | 287 } // namespace gles2 |
287 } // namespace gpu | 288 } // namespace gpu |
288 | 289 |
289 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 290 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
OLD | NEW |