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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h
index 12fa7b6..477983f 100644
--- a/gpu/command_buffer/service/context_group.h
+++ b/gpu/command_buffer/service/context_group.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/linked_ptr.h"
#include "base/scoped_ptr.h"
+#include "gpu/command_buffer/service/gles2_cmd_validation.h"
namespace gpu {
@@ -88,6 +89,10 @@ class ContextGroup {
IdAllocator* GetIdAllocator(unsigned namepsace_id);
+ const Validators* validators() const {
+ return &validators_;
+ }
+
private:
// Whether or not this context is initialized.
bool initialized_;
@@ -115,6 +120,8 @@ class ContextGroup {
typedef std::map<uint32, linked_ptr<IdAllocator> > IdAllocatorMap;
IdAllocatorMap id_namespaces_;
+ Validators validators_;
+
DISALLOW_COPY_AND_ASSIGN(ContextGroup);
};