diff options
Diffstat (limited to 'cc/CCScopedTexture.cpp')
-rw-r--r-- | cc/CCScopedTexture.cpp | 4 |
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); |