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

Unified Diff: cc/proxy.cc

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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 bc5ae69a57b362022d0022cc5c4a2b7e4d7e8ef3..0ed550c813558ff8b9bf4ff27806e7b3a39fc261 100644
--- a/cc/proxy.cc
+++ b/cc/proxy.cc
@@ -13,7 +13,7 @@ using namespace WTF;
namespace cc {
namespace {
-#ifndef NDEBUG
+#if CC_DCHECK_ENABLED()
bool implThreadIsOverridden = false;
bool s_isMainThreadBlocked = false;
base::PlatformThreadId threadIDOverridenToBeImplThread;
@@ -57,10 +57,10 @@ CCThread* CCProxy::currentThread()
return 0;
}
-#ifndef NDEBUG
+#if CC_DCHECK_ENABLED()
bool CCProxy::isMainThread()
{
- ASSERT(s_mainThread);
+ CC_DCHECK(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()
{
- ASSERT(isMainThread());
+ CC_DCHECK(isMainThread());
}
CCProxy::~CCProxy()
{
- ASSERT(isMainThread());
+ CC_DCHECK(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