summaryrefslogtreecommitdiffstats
path: root/cc/CCScopedTexture.cpp
diff options
context:
space:
mode:
authorjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-10 22:04:21 +0000
committerjamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-10 22:04:21 +0000
commitdedbe4068e61e476f7dc42f0921dba360329b3e8 (patch)
tree59f333e3ba8a54f324caae5d236e1bb679cc6ee1 /cc/CCScopedTexture.cpp
parentefa810b842c84c52825e6446ba2608ffa4e2450a (diff)
downloadchromium_src-dedbe4068e61e476f7dc42f0921dba360329b3e8.zip
chromium_src-dedbe4068e61e476f7dc42f0921dba360329b3e8.tar.gz
chromium_src-dedbe4068e61e476f7dc42f0921dba360329b3e8.tar.bz2
Avoid using WTF threading code in cc
This stuff isn't available in the component build since we only initialize WTF threading inside WebKit.dll and cc isn't in WebKit.dll BUG= Review URL: https://chromiumcodereview.appspot.com/10913158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155846 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/CCScopedTexture.cpp')
-rw-r--r--cc/CCScopedTexture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/CCScopedTexture.cpp b/cc/CCScopedTexture.cpp
index b032680..524dfd4 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);