From 959c08a729d39539327aeb634dbce69524e7b678 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Mon, 10 Oct 2011 15:58:27 -0700 Subject: Mark tiles discarded by TransferQueue as dirty bug:5409902 Tiles were being discarded from the queue (and simply unsuccessfully added). This caused them to get stuck in the 'ValidatedUntransferred' state. Now if a tile isn't added successfully, or if it's discarded, it removes its painting texture and will have to repaint from scratch. Change-Id: I551e00fb8a6be3b0f3cabeabaa91e8b8b30019d5 --- Source/WebCore/platform/graphics/android/TilesManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/WebCore/platform/graphics/android/TilesManager.cpp') diff --git a/Source/WebCore/platform/graphics/android/TilesManager.cpp b/Source/WebCore/platform/graphics/android/TilesManager.cpp index f077d48..72c48b2 100644 --- a/Source/WebCore/platform/graphics/android/TilesManager.cpp +++ b/Source/WebCore/platform/graphics/android/TilesManager.cpp @@ -169,14 +169,14 @@ void TilesManager::deallocateTextures(bool allTextures) for (unsigned int i = 0; i < max; i++) { TextureOwner* owner = m_textures[i]->owner(); if (!owner || owner->drawCount() < sparedDrawCount) { - m_textures[i]->discardTexture(); + m_textures[i]->discardGLTexture(); dealloc++; } } for (unsigned int i = 0; i < maxLayer; i++) { TextureOwner* owner = m_tilesTextures[i]->owner(); if (!owner || owner->drawCount() < sparedDrawCount) { - m_tilesTextures[i]->discardTexture(); + m_tilesTextures[i]->discardGLTexture(); dealloc++; } } -- cgit v1.1