From faa9e7f5cce5f55ef4d85e00bc6fb64c5fc94c8e Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Thu, 22 Sep 2011 16:25:22 -0700 Subject: Discard BaseTileTextures entirely when they delete their GL textures bug:5361337 Fixes issue with garbage being drawn in unpainted tiles, and also allocates tiles very lazily. Change-Id: I9799b63670a80748a4809b61506da96a739d3a65 --- Source/WebCore/platform/graphics/android/BaseTileTexture.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'Source/WebCore/platform/graphics/android/BaseTileTexture.cpp') diff --git a/Source/WebCore/platform/graphics/android/BaseTileTexture.cpp b/Source/WebCore/platform/graphics/android/BaseTileTexture.cpp index f049b6f..d60d695 100644 --- a/Source/WebCore/platform/graphics/android/BaseTileTexture.cpp +++ b/Source/WebCore/platform/graphics/android/BaseTileTexture.cpp @@ -89,6 +89,7 @@ void BaseTileTexture::discardTexture() { if (m_ownTextureId) GLUtils::deleteTexture(&m_ownTextureId); + release(m_owner); } void BaseTileTexture::destroyTextures(SharedTexture** textures) @@ -274,13 +275,6 @@ void BaseTileTexture::setOwnTextureTileInfoFromQueue(const TextureTileInfo* info bool BaseTileTexture::readyFor(BaseTile* baseTile) { - if (!m_ownTextureId) { - // If our backing opengl texture doesn't exist, allocate it and return - // false since it won't have useful data - requireTexture(); - return false; - } - const TextureTileInfo* info = &m_ownTextureTileInfo; if (info && (info->m_x == baseTile->x()) && -- cgit v1.1