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

Unified Diff: ui/gl/gl_share_group.h

Issue 1004593005: base::RefCounted now DCHECKs when referenced from multiple threads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix lots of tests using UnsafeRefCounted. Created 5 years, 9 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
« base/memory/ref_counted.h ('K') | « ui/gfx/image/image.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_share_group.h
diff --git a/ui/gl/gl_share_group.h b/ui/gl/gl_share_group.h
index 1deed63c541c1584becd2fa0fc954f6392a5d8e9..d3210c77e184822e88f725a24a19bb63fc76822b 100644
--- a/ui/gl/gl_share_group.h
+++ b/ui/gl/gl_share_group.h
@@ -16,7 +16,8 @@ namespace gfx {
class GLContext;
// A group of GL contexts that share an ID namespace.
-class GL_EXPORT GLShareGroup : public base::RefCounted<GLShareGroup> {
+// TODO(mgiuca): Avoid using UnsafeRefCounted. http://crbug.com/469952.
+class GL_EXPORT GLShareGroup : public base::UnsafeRefCounted<GLShareGroup> {
public:
GLShareGroup();
@@ -46,7 +47,7 @@ class GL_EXPORT GLShareGroup : public base::RefCounted<GLShareGroup> {
#endif
private:
- friend class base::RefCounted<GLShareGroup>;
+ friend class base::UnsafeRefCounted<GLShareGroup>;
~GLShareGroup();
« base/memory/ref_counted.h ('K') | « ui/gfx/image/image.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698