summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/BaseTileTexture.cpp
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2011-09-22 16:25:22 -0700
committerChris Craik <ccraik@google.com>2011-09-22 16:25:22 -0700
commitfaa9e7f5cce5f55ef4d85e00bc6fb64c5fc94c8e (patch)
treecd7fa2e913dfdcdd73168775f0686058d355a065 /Source/WebCore/platform/graphics/android/BaseTileTexture.cpp
parent10a44388d0f291ac0aa1af1a0ef9fa99c98c842c (diff)
downloadexternal_webkit-faa9e7f5cce5f55ef4d85e00bc6fb64c5fc94c8e.zip
external_webkit-faa9e7f5cce5f55ef4d85e00bc6fb64c5fc94c8e.tar.gz
external_webkit-faa9e7f5cce5f55ef4d85e00bc6fb64c5fc94c8e.tar.bz2
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
Diffstat (limited to 'Source/WebCore/platform/graphics/android/BaseTileTexture.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/BaseTileTexture.cpp8
1 files changed, 1 insertions, 7 deletions
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()) &&