Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Unified Diff: gpu/command_buffer/service/context_group.h

Issue 10067035: RefCounted types should not have public destructors, media/ and gpu/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698