summaryrefslogtreecommitdiffstats
path: root/cc/single_thread_proxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'cc/single_thread_proxy.h')
-rw-r--r--cc/single_thread_proxy.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cc/single_thread_proxy.h b/cc/single_thread_proxy.h
index 2bbacef..d43d874 100644
--- a/cc/single_thread_proxy.h
+++ b/cc/single_thread_proxy.h
@@ -8,7 +8,7 @@
#include "CCAnimationEvents.h"
#include "CCLayerTreeHostImpl.h"
#include "CCProxy.h"
-#include <base/time.h>
+#include "base/time.h"
#include <limits>
namespace cc {
@@ -90,13 +90,13 @@ class DebugScopedSetImplThread {
public:
DebugScopedSetImplThread()
{
-#if !ASSERT_DISABLED
+#if CC_DCHECK_ENABLED()
CCProxy::setCurrentThreadIsImplThread(true);
#endif
}
~DebugScopedSetImplThread()
{
-#if !ASSERT_DISABLED
+#if CC_DCHECK_ENABLED()
CCProxy::setCurrentThreadIsImplThread(false);
#endif
}
@@ -108,13 +108,13 @@ class DebugScopedSetMainThread {
public:
DebugScopedSetMainThread()
{
-#if !ASSERT_DISABLED
+#if CC_DCHECK_ENABLED()
CCProxy::setCurrentThreadIsImplThread(false);
#endif
}
~DebugScopedSetMainThread()
{
-#if !ASSERT_DISABLED
+#if CC_DCHECK_ENABLED()
CCProxy::setCurrentThreadIsImplThread(true);
#endif
}