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

Unified Diff: cc/proxy.cc

Issue 11196014: Revert "cc: Switch to Chromium DCHECKs LOGs" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « cc/proxy.h ('k') | cc/quad_culler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/proxy.cc
diff --git a/cc/proxy.cc b/cc/proxy.cc
index 10b4ed04a90694a7d740785e51bb811daeafd341..bc5ae69a57b362022d0022cc5c4a2b7e4d7e8ef3 100644
--- a/cc/proxy.cc
+++ b/cc/proxy.cc
@@ -13,7 +13,7 @@ using namespace WTF;
namespace cc {
namespace {
-#if CC_DCHECK_ENABLED()
+#ifndef NDEBUG
bool implThreadIsOverridden = false;
bool s_isMainThreadBlocked = false;
base::PlatformThreadId threadIDOverridenToBeImplThread;
@@ -57,10 +57,10 @@ CCThread* CCProxy::currentThread()
return 0;
}
-#if CC_DCHECK_ENABLED()
+#ifndef NDEBUG
bool CCProxy::isMainThread()
{
- DCHECK(s_mainThread);
+ ASSERT(s_mainThread);
if (implThreadIsOverridden && base::PlatformThread::CurrentId() == threadIDOverridenToBeImplThread)
return false;
return base::PlatformThread::CurrentId() == s_mainThread->threadID();
@@ -94,12 +94,12 @@ void CCProxy::setMainThreadBlocked(bool isMainThreadBlocked)
CCProxy::CCProxy()
{
- DCHECK(isMainThread());
+ ASSERT(isMainThread());
}
CCProxy::~CCProxy()
{
- DCHECK(isMainThread());
+ ASSERT(isMainThread());
}
}
« no previous file with comments | « cc/proxy.h ('k') | cc/quad_culler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698