summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform')
-rw-r--r--WebCore/platform/graphics/android/TilesManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/android/TilesManager.cpp b/WebCore/platform/graphics/android/TilesManager.cpp
index 34d0546..afc53eb 100644
--- a/WebCore/platform/graphics/android/TilesManager.cpp
+++ b/WebCore/platform/graphics/android/TilesManager.cpp
@@ -148,8 +148,9 @@ void TilesManager::resetTextureUsage(TiledPage* page)
android::Mutex::Autolock lock(m_texturesLock);
for (unsigned int i = 0; i < m_textures.size(); i++) {
BackedDoubleBufferedTexture* texture = m_textures[i];
- if (texture->owner()) {
- if (texture->owner()->page() == page)
+ TextureOwner* owner = texture->owner();
+ if (owner) {
+ if (owner->page() == page)
texture->setUsedLevel(-1);
}
}