From 7aabeb5a7207216adbd99c10990804112007bc38 Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Mon, 27 Jun 2011 17:36:10 -0700 Subject: Delete the GL texture when deleting the Surface Texture Otherwise, there will be GPU memory leak. bug:4947376 Change-Id: Ib76a47c197d7c1a01471c4b38e210e0d5dd9fa02 --- Source/WebCore/platform/graphics/android/SharedTexture.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/WebCore/platform') diff --git a/Source/WebCore/platform/graphics/android/SharedTexture.cpp b/Source/WebCore/platform/graphics/android/SharedTexture.cpp index cbe44da..4f52107 100644 --- a/Source/WebCore/platform/graphics/android/SharedTexture.cpp +++ b/Source/WebCore/platform/graphics/android/SharedTexture.cpp @@ -78,6 +78,7 @@ SharedTexture::~SharedTexture() else if (m_sharedTextureMode == SurfaceTextureMode) { m_sourceTexture->m_surfaceTexture.clear(); m_sourceTexture->m_ANW.clear(); + GLUtils::deleteTexture(&m_sourceTexture->m_textureId); } delete m_sourceTexture; delete m_targetTexture; -- cgit v1.1