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 7c78f973e31e41e41af56b9567fe8608d1837053..e191c518c6c20867a70ac5bda0a6b6b60dbfe93b 100644 |
--- a/gpu/command_buffer/service/context_group.h |
+++ b/gpu/command_buffer/service/context_group.h |
@@ -38,7 +38,6 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
typedef scoped_refptr<ContextGroup> Ref; |
explicit ContextGroup(bool bind_generates_resource); |
- ~ContextGroup(); |
// This should only be called by GLES2Decoder. This must be paired with a |
// call to destroy if it succeeds. |
@@ -112,6 +111,9 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
IdAllocatorInterface* GetIdAllocator(unsigned namespace_id); |
private: |
+ friend class base::RefCounted<ContextGroup>; |
+ ~ContextGroup(); |
+ |
// Whether or not this context is initialized. |
int num_contexts_; |
bool bind_generates_resource_; |