diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2011-06-27 17:36:10 -0700 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2011-06-27 17:36:10 -0700 |
commit | 7aabeb5a7207216adbd99c10990804112007bc38 (patch) | |
tree | 401f291a395f2978b13988cb06db3be0f4d78117 /Source/WebCore | |
parent | 53448d163d8dbb96e2d01046483298b078c17eb0 (diff) | |
download | external_webkit-7aabeb5a7207216adbd99c10990804112007bc38.zip external_webkit-7aabeb5a7207216adbd99c10990804112007bc38.tar.gz external_webkit-7aabeb5a7207216adbd99c10990804112007bc38.tar.bz2 |
Delete the GL texture when deleting the Surface Texture
Otherwise, there will be GPU memory leak.
bug:4947376
Change-Id: Ib76a47c197d7c1a01471c4b38e210e0d5dd9fa02
Diffstat (limited to 'Source/WebCore')
-rw-r--r-- | Source/WebCore/platform/graphics/android/SharedTexture.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |