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

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

Issue 7873004: Merge 94964 - [chromium] REGRESSION(94353): Compositor textures and resources leaked when tab clo... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 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/VideoLayerChromium.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/VideoLayerChromium.cpp (revision 94966)
+++ Source/WebCore/platform/graphics/chromium/VideoLayerChromium.cpp (working copy)
@@ -148,7 +148,7 @@
void VideoLayerChromium::setLayerTreeHost(CCLayerTreeHost* host)
{
- if (layerTreeHost() != host) {
+ if (host && layerTreeHost() != host) {
for (size_t i = 0; i < 3; ++i) {
m_textures[i].m_visibleSize = IntSize();
m_textures[i].m_texture = ManagedTexture::create(host->contentsTextureManager());

Powered by Google App Engine
This is Rietveld 408576698