Index: gpu/command_buffer/service/context_group.h |
diff --git a/gpu/command_buffer/service/context_group.h b/gpu/command_buffer/service/context_group.h |
index a2e63828c5386ab7a197c4d918b373788abe7a2f..f130dc6ff6b50a811f989d02f50902cd555c87d9 100644 |
--- a/gpu/command_buffer/service/context_group.h |
+++ b/gpu/command_buffer/service/context_group.h |
@@ -36,7 +36,7 @@ class ContextGroup : public base::RefCounted<ContextGroup> { |
public: |
typedef scoped_refptr<ContextGroup> Ref; |
- ContextGroup(); |
+ explicit ContextGroup(bool bind_generates_resource); |
~ContextGroup(); |
// This should only be called by GLES2Decoder. |
@@ -48,6 +48,10 @@ class ContextGroup : public base::RefCounted<ContextGroup> { |
have_context_ = have_context; |
} |
+ bool bind_generates_resource() { |
+ return bind_generates_resource_; |
+ } |
+ |
uint32 max_vertex_attribs() const { |
return max_vertex_attribs_; |
} |
@@ -113,6 +117,7 @@ class ContextGroup : public base::RefCounted<ContextGroup> { |
// Whether or not this context is initialized. |
bool initialized_; |
bool have_context_; |
+ bool bind_generates_resource_; |
uint32 max_vertex_attribs_; |
uint32 max_texture_units_; |