Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp

Issue 7749028: Compositor leaks all resources if tab is closed and it's not the last in the process (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (revision 93831)
+++ Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp (working copy)
@@ -102,12 +102,21 @@
GraphicsLayerChromium::~GraphicsLayerChromium()
{
- if (m_layer)
+ if (m_layer) {
m_layer->setOwner(0);
- if (m_contentsLayer)
+ if (m_layer->ccLayerImpl())
+ m_layer->ccLayerImpl()->clearRenderSurface();
+ }
+ if (m_contentsLayer) {
m_contentsLayer->setOwner(0);
- if (m_transformLayer)
+ if (m_contentsLayer->ccLayerImpl())
+ m_contentsLayer->ccLayerImpl()->clearRenderSurface();
+ }
+ if (m_transformLayer) {
m_transformLayer->setOwner(0);
+ if (m_transformLayer->ccLayerImpl())
+ m_transformLayer->ccLayerImpl()->clearRenderSurface();
+ }
}
void GraphicsLayerChromium::setName(const String& inName)

Powered by Google App Engine
This is Rietveld 408576698