summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
diff options
context:
space:
mode:
authorNicolas Roard <nicolas@android.com>2010-10-15 15:17:00 -0700
committerNicolas Roard <nicolas@android.com>2010-10-15 15:17:00 -0700
commitcf1ae53e7b2853d1148ecd784379f12dffda9d43 (patch)
tree20639e10f2cd575a20c99e17786001e316f8118b /WebCore/platform
parentd6d45373091911474be002a83ec9644e2701964b (diff)
downloadexternal_webkit-cf1ae53e7b2853d1148ecd784379f12dffda9d43.zip
external_webkit-cf1ae53e7b2853d1148ecd784379f12dffda9d43.tar.gz
external_webkit-cf1ae53e7b2853d1148ecd784379f12dffda9d43.tar.bz2
Fix potential deadlock when acquiring a texture
Change-Id: Ie24613c69fd048b14003f7cbc3ad0c86ba4e295e
Diffstat (limited to 'WebCore/platform')
-rw-r--r--WebCore/platform/graphics/android/BaseTile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp
index 478261b..7471c70 100644
--- a/WebCore/platform/graphics/android/BaseTile.cpp
+++ b/WebCore/platform/graphics/android/BaseTile.cpp
@@ -151,10 +151,11 @@ bool BaseTile::paintBitmap()
{
m_varLock.lock();
BackedDoubleBufferedTexture* texture = m_texture;
+ m_varLock.unlock();
+
bool available = false;
if (texture)
available = texture->acquireForPainting();
- m_varLock.unlock();
if (!texture || !available)
return false;