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

Unified Diff: cc/trees/proxy.cc

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy.cc
diff --git a/cc/trees/proxy.cc b/cc/trees/proxy.cc
index e981a722cad6393ce40faf6bf8785fd09633cdc9..eb81e2e6735c2c17150b3b3c972b38f537f77899 100644
--- a/cc/trees/proxy.cc
+++ b/cc/trees/proxy.cc
@@ -21,7 +21,7 @@ base::SingleThreadTaskRunner* Proxy::ImplThreadTaskRunner() const {
}
bool Proxy::IsMainThread() const {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
if (impl_thread_is_overridden_)
return false;
@@ -36,7 +36,7 @@ bool Proxy::IsMainThread() const {
}
bool Proxy::IsImplThread() const {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
if (impl_thread_is_overridden_)
return true;
if (!impl_task_runner_.get())
@@ -47,21 +47,21 @@ bool Proxy::IsImplThread() const {
#endif
}
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
void Proxy::SetCurrentThreadIsImplThread(bool is_impl_thread) {
impl_thread_is_overridden_ = is_impl_thread;
}
#endif
bool Proxy::IsMainThreadBlocked() const {
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
return is_main_thread_blocked_;
#else
return true;
#endif
}
-#if DCHECK_IS_ON
+#if DCHECK_IS_ON()
void Proxy::SetMainThreadBlocked(bool is_main_thread_blocked) {
is_main_thread_blocked_ = is_main_thread_blocked;
}
@@ -69,7 +69,7 @@ void Proxy::SetMainThreadBlocked(bool is_main_thread_blocked) {
Proxy::Proxy(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner)
-#if !DCHECK_IS_ON
+#if !DCHECK_IS_ON()
: main_task_runner_(main_task_runner),
impl_task_runner_(impl_task_runner),
blocking_main_thread_task_runner_(
« no previous file with comments | « cc/trees/proxy.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698