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

Unified Diff: gpu/command_buffer/client/ref_counted.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
« no previous file with comments | « no previous file | gpu/command_buffer/client/share_group.h » ('j') | media/audio/audio_output_dispatcher.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/ref_counted.h
diff --git a/gpu/command_buffer/client/ref_counted.h b/gpu/command_buffer/client/ref_counted.h
index ed73a732fabec660632513776e6e605646628142..bb642f006919be4f7e2c17019cac650d47f1e6e3 100644
--- a/gpu/command_buffer/client/ref_counted.h
+++ b/gpu/command_buffer/client/ref_counted.h
@@ -9,15 +9,20 @@
#include "native_client/src/include/ref_counted.h"
namespace gpu {
template <class T>
-struct RefCountedThreadSafe : public nacl::RefCounted<T> {
+class RefCountedThreadSafe : public nacl::RefCounted<T> {
Ryan Sleevi 2012/04/13 09:40:00 I don't suppose there's any chance this can be ren
greggman 2012/04/13 17:19:24 This is already compiling in NaCl. What am I missi
Ryan Sleevi 2012/04/13 17:30:01 It compiles because the destructors are public tod
+ public:
+ RefCountedThreadSafe() {}
+ ~RefCountedThreadSafe() {}
+
+ private:
+ RefCountedThreadSafe(const RefCountedThreadSafe<T>&);
+ void operator=(const RefCountedThreadSafe<T>&);
};
}
#else
#include "base/memory/ref_counted.h"
namespace gpu {
-template <class T>
-struct RefCountedThreadSafe : public base::RefCountedThreadSafe<T> {
-};
+using base::RefCountedThreadSafe;
}
#endif
« no previous file with comments | « no previous file | gpu/command_buffer/client/share_group.h » ('j') | media/audio/audio_output_dispatcher.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698