| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CLIENT_PROGRAM_INFO_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_PROGRAM_INFO_MANAGER_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_PROGRAM_INFO_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_PROGRAM_INFO_MANAGER_H_ |
| 7 | 7 |
| 8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
| 9 #include "gles2_impl_export.h" |
| 9 | 10 |
| 10 namespace gpu { | 11 namespace gpu { |
| 11 namespace gles2 { | 12 namespace gles2 { |
| 12 | 13 |
| 13 class GLES2Implementation; | 14 class GLES2Implementation; |
| 14 | 15 |
| 15 // Manages info about OpenGL ES Programs. | 16 // Manages info about OpenGL ES Programs. |
| 16 class ProgramInfoManager { | 17 class GLES2_IMPL_EXPORT ProgramInfoManager { |
| 17 public: | 18 public: |
| 18 virtual ~ProgramInfoManager(); | 19 virtual ~ProgramInfoManager(); |
| 19 | 20 |
| 20 static ProgramInfoManager* Create(bool shared_resources_across_processes); | 21 static ProgramInfoManager* Create(bool shared_resources_across_processes); |
| 21 | 22 |
| 22 virtual void CreateInfo(GLuint program) = 0; | 23 virtual void CreateInfo(GLuint program) = 0; |
| 23 | 24 |
| 24 virtual void DeleteInfo(GLuint program) = 0; | 25 virtual void DeleteInfo(GLuint program) = 0; |
| 25 | 26 |
| 26 virtual bool GetProgramiv( | 27 virtual bool GetProgramiv( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 43 GLint* size, GLenum* type, char* name) = 0; | 44 GLint* size, GLenum* type, char* name) = 0; |
| 44 | 45 |
| 45 protected: | 46 protected: |
| 46 ProgramInfoManager(); | 47 ProgramInfoManager(); |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 } // namespace gles2 | 50 } // namespace gles2 |
| 50 } // namespace gpu | 51 } // namespace gpu |
| 51 | 52 |
| 52 #endif // GPU_COMMAND_BUFFER_CLIENT_PROGRAM_INFO_MANAGER_H_ | 53 #endif // GPU_COMMAND_BUFFER_CLIENT_PROGRAM_INFO_MANAGER_H_ |
| OLD | NEW |