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

Unified Diff: cc/scoped_thread_proxy.h

Issue 11192030: cc: Switch to Chromium DCHECKs LOGs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaseonenne 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/scoped_texture.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_thread_proxy.h
diff --git a/cc/scoped_thread_proxy.h b/cc/scoped_thread_proxy.h
index 802046dcfa858a6dbe09b4d0896adac1b99f10f3..c6ac44019ebb885ce9090cf748317877fbeab44b 100644
--- a/cc/scoped_thread_proxy.h
+++ b/cc/scoped_thread_proxy.h
@@ -6,6 +6,7 @@
#define CCScopedThreadProxy_h
#include "CCThreadTask.h"
+#include "base/logging.h"
#include "base/threading/platform_thread.h"
#include <wtf/OwnPtr.h>
#include <wtf/PassOwnPtr.h>
@@ -27,7 +28,7 @@ class CCScopedThreadProxy : public ThreadSafeRefCounted<CCScopedThreadProxy> {
public:
static PassRefPtr<CCScopedThreadProxy> create(CCThread* targetThread)
{
- ASSERT(base::PlatformThread::CurrentId() == targetThread->threadID());
+ DCHECK(base::PlatformThread::CurrentId() == targetThread->threadID());
return adoptRef(new CCScopedThreadProxy(targetThread));
}
@@ -43,8 +44,8 @@ public:
void shutdown()
{
- ASSERT(base::PlatformThread::CurrentId() == m_targetThread->threadID());
- ASSERT(!m_shutdown);
+ DCHECK(base::PlatformThread::CurrentId() == m_targetThread->threadID());
+ DCHECK(!m_shutdown);
m_shutdown = true;
}
@@ -60,7 +61,7 @@ private:
deref();
return;
}
- ASSERT(base::PlatformThread::CurrentId() == m_targetThread->threadID());
+ DCHECK(base::PlatformThread::CurrentId() == m_targetThread->threadID());
task->performTask();
deref();
}
« no previous file with comments | « cc/scoped_texture.cc ('k') | cc/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698