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

Unified Diff: gpu/command_buffer/common/value_state.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
Index: gpu/command_buffer/common/value_state.h
diff --git a/gpu/command_buffer/common/value_state.h b/gpu/command_buffer/common/value_state.h
index 478924581b8a13b45d8afd9cfce38f7cbd38b8b5..d39ca752a855c077f93f1eefccd10e4d344cbbdf 100644
--- a/gpu/command_buffer/common/value_state.h
+++ b/gpu/command_buffer/common/value_state.h
@@ -19,7 +19,8 @@ union GPU_EXPORT ValueState {
};
// Refcounted wrapper for a hash_map of subscription targets to ValueStates
-class GPU_EXPORT ValueStateMap : public base::RefCounted<ValueStateMap> {
+// TODO(mgiuca): Avoid using UnsafeRefCounted. http://crbug.com/469952.
+class GPU_EXPORT ValueStateMap : public base::UnsafeRefCounted<ValueStateMap> {
public:
ValueStateMap();
@@ -32,7 +33,7 @@ class GPU_EXPORT ValueStateMap : public base::RefCounted<ValueStateMap> {
virtual ~ValueStateMap();
private:
- friend class base::RefCounted<ValueStateMap>;
+ friend class base::UnsafeRefCounted<ValueStateMap>;
typedef base::hash_map<unsigned int, ValueState> Map;

Powered by Google App Engine
This is Rietveld 408576698