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

Unified Diff: cc/CCScopedTexture.cpp

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.h ('k') | cc/CCScopedThreadProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScopedTexture.cpp
diff --git a/cc/CCScopedTexture.cpp b/cc/CCScopedTexture.cpp
index b032680714f59d04a62ae13dc1e5fb063f8d330d..524dfd44eb64e99eb2bf1a95af12637b1333b56a 100644
--- a/cc/CCScopedTexture.cpp
+++ b/cc/CCScopedTexture.cpp
@@ -28,7 +28,7 @@ bool CCScopedTexture::allocate(int pool, const IntSize& size, GC3Denum format, C
setId(m_resourceProvider->createResource(pool, size, format, hint));
#if !ASSERT_DISABLED
- m_allocateThreadIdentifier = WTF::currentThread();
+ m_allocateThreadIdentifier = base::PlatformThread::CurrentId();
#endif
return id();
@@ -37,7 +37,7 @@ bool CCScopedTexture::allocate(int pool, const IntSize& size, GC3Denum format, C
void CCScopedTexture::free()
{
if (id()) {
- ASSERT(m_allocateThreadIdentifier == WTF::currentThread());
+ ASSERT(m_allocateThreadIdentifier == base::PlatformThread::CurrentId());
m_resourceProvider->deleteResource(id());
}
setId(0);
« no previous file with comments | « cc/CCScopedTexture.h ('k') | cc/CCScopedThreadProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698