diff options
Diffstat (limited to 'WebCore/platform/graphics/android/BaseTile.cpp')
-rw-r--r-- | WebCore/platform/graphics/android/BaseTile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/BaseTile.cpp b/WebCore/platform/graphics/android/BaseTile.cpp index a506ac9..35de698 100644 --- a/WebCore/platform/graphics/android/BaseTile.cpp +++ b/WebCore/platform/graphics/android/BaseTile.cpp @@ -115,12 +115,13 @@ void BaseTile::reserveTexture() m_texture = texture; } -void BaseTile::removeTexture() +void BaseTile::removeTexture(BackedDoubleBufferedTexture* texture) { XLOG("%x removeTexture res: %x...", this, m_texture); // We update atomically, so paintBitmap() can see the correct value android::AutoMutex lock(m_atomicSync); - m_texture = 0; + if (m_texture == texture) + m_texture = 0; } void BaseTile::setScale(float scale) |