Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: gpu/command_buffer/client/program_info_manager.h

Issue 10581029: Make GL_CHROMIUM_consistent_uniform_locations slighty more robust (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_unittest.cc ('k') | gpu/command_buffer/client/share_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698