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

Unified Diff: base/memory/ref_counted.cc

Issue 38553002: cc: Add tile pool to tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | « base/memory/ref_counted.h ('k') | cc/base/ref_counted_managed.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/ref_counted.cc
diff --git a/base/memory/ref_counted.cc b/base/memory/ref_counted.cc
index 31ad5098cd0fdebd7407b09dfdedca2f736e2693..b2b3b570c3c30e502077b56e9678b98ff62a73d9 100644
--- a/base/memory/ref_counted.cc
+++ b/base/memory/ref_counted.cc
@@ -51,6 +51,12 @@ bool RefCountedBase::Release() const {
return false;
}
+void RefCountedBase::ClearInDtor() const {
+#ifndef NDEBUG
+ in_dtor_ = false;
+#endif
+}
+
bool RefCountedThreadSafeBase::HasOneRef() const {
return AtomicRefCountIsOne(
&const_cast<RefCountedThreadSafeBase*>(this)->ref_count_);
« no previous file with comments | « base/memory/ref_counted.h ('k') | cc/base/ref_counted_managed.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698