| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 ShaderManager::ShaderInfo::Ref attached_shaders_[kMaxAttachedShaders]; | 190 ShaderManager::ShaderInfo::Ref attached_shaders_[kMaxAttachedShaders]; |
| 191 | 191 |
| 192 // This is true if glLinkProgram was successful. | 192 // This is true if glLinkProgram was successful. |
| 193 bool valid_; | 193 bool valid_; |
| 194 | 194 |
| 195 // Log info | 195 // Log info |
| 196 std::string log_info_; | 196 std::string log_info_; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 ProgramManager() { } | 199 ProgramManager() { } |
| 200 ~ProgramManager(); |
| 201 |
| 202 // Must call before destruction. |
| 203 void Destroy(bool have_context); |
| 200 | 204 |
| 201 // Creates a new program info. | 205 // Creates a new program info. |
| 202 void CreateProgramInfo(GLuint client_id, GLuint service_id); | 206 void CreateProgramInfo(GLuint client_id, GLuint service_id); |
| 203 | 207 |
| 204 // Gets a program info | 208 // Gets a program info |
| 205 ProgramInfo* GetProgramInfo(GLuint client_id); | 209 ProgramInfo* GetProgramInfo(GLuint client_id); |
| 206 | 210 |
| 207 // Deletes the program info for the given program. | 211 // Deletes the program info for the given program. |
| 208 void RemoveProgramInfo(GLuint client_id); | 212 void RemoveProgramInfo(GLuint client_id); |
| 209 | 213 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 220 ProgramInfoMap program_infos_; | 224 ProgramInfoMap program_infos_; |
| 221 | 225 |
| 222 DISALLOW_COPY_AND_ASSIGN(ProgramManager); | 226 DISALLOW_COPY_AND_ASSIGN(ProgramManager); |
| 223 }; | 227 }; |
| 224 | 228 |
| 225 } // namespace gles2 | 229 } // namespace gles2 |
| 226 } // namespace gpu | 230 } // namespace gpu |
| 227 | 231 |
| 228 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ | 232 #endif // GPU_COMMAND_BUFFER_SERVICE_PROGRAM_MANAGER_H_ |
| 229 | 233 |
| OLD | NEW |