summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/service/context_group.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/command_buffer/service/context_group.h')
-rw-r--r--gpu/command_buffer/service/context_group.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 8ccbb62..2b0bf46 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -5,11 +5,15 @@
#ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
#define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
-#include <vector>
+#include <map>
#include "base/basictypes.h"
+#include "base/linked_ptr.h"
#include "base/scoped_ptr.h"
namespace gpu {
+
+class IdAllocator;
+
namespace gles2 {
class GLES2Decoder;
@@ -62,6 +66,8 @@ class ContextGroup {
return shader_manager_.get();
}
+ IdAllocator* GetIdAllocator(unsigned namepsace_id);
+
private:
// Whether or not this context is initialized.
bool initialized_;
@@ -82,6 +88,9 @@ class ContextGroup {
scoped_ptr<ShaderManager> shader_manager_;
+ typedef std::map<uint32, linked_ptr<IdAllocator> > IdAllocatorMap;
+ IdAllocatorMap id_namespaces_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};