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 8c5477eaf81008fb4b169f2cb34e2ac956b710eb..7b9118f7007f7802f5ca930c9e9baa2600fbcb5a 100644 |
--- a/gpu/command_buffer/service/context_group.h |
+++ b/gpu/command_buffer/service/context_group.h |
@@ -40,7 +40,6 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
explicit ContextGroup(MailboxManager* mailbox_manager, |
bool bind_generates_resource); |
- ~ContextGroup(); |
// This should only be called by GLES2Decoder. This must be paired with a |
// call to destroy if it succeeds. |
@@ -118,6 +117,9 @@ class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { |
IdAllocatorInterface* GetIdAllocator(unsigned namespace_id); |
private: |
+ friend class base::RefCounted<ContextGroup>; |
+ ~ContextGroup(); |
+ |
bool CheckGLFeature(GLint min_required, GLint* v); |
bool CheckGLFeatureU(GLint min_required, uint32* v); |
bool QueryGLFeature(GLenum pname, GLint min_required, GLint* v); |