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

Unified Diff: cc/CCScopedThreadProxy.h

Issue 10913158: Avoid using WTF threading code in cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/CCScopedTexture.cpp ('k') | cc/CCThread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScopedThreadProxy.h
diff --git a/cc/CCScopedThreadProxy.h b/cc/CCScopedThreadProxy.h
index e30587c995f61d5ea6ef4b4bdfaaacda90f9d07c..32c5b8ee19a30c097b1dcc41d5649e844ddb3de3 100644
--- a/cc/CCScopedThreadProxy.h
+++ b/cc/CCScopedThreadProxy.h
@@ -6,6 +6,7 @@
#define CCScopedThreadProxy_h
#include "CCThreadTask.h"
+#include "base/threading/platform_thread.h"
#include <wtf/ThreadSafeRefCounted.h>
namespace WebCore {
@@ -24,7 +25,7 @@ class CCScopedThreadProxy : public ThreadSafeRefCounted<CCScopedThreadProxy> {
public:
static PassRefPtr<CCScopedThreadProxy> create(CCThread* targetThread)
{
- ASSERT(currentThread() == targetThread->threadID());
+ ASSERT(base::PlatformThread::CurrentId() == targetThread->threadID());
return adoptRef(new CCScopedThreadProxy(targetThread));
}
@@ -38,7 +39,7 @@ public:
void shutdown()
{
- ASSERT(currentThread() == m_targetThread->threadID());
+ ASSERT(base::PlatformThread::CurrentId() == m_targetThread->threadID());
ASSERT(!m_shutdown);
m_shutdown = true;
}
@@ -57,7 +58,7 @@ private:
deref();
return;
}
- ASSERT(currentThread() == m_targetThread->threadID());
+ ASSERT(base::PlatformThread::CurrentId() == m_targetThread->threadID());
task->performTask();
deref();
}
« no previous file with comments | « cc/CCScopedTexture.cpp ('k') | cc/CCThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698