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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11883030: cc: Fix lost context handling when using impl-side painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | cc/picture_layer_impl.h » ('j') | cc/tile_manager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index e6b9ac99e0d49ae673f001b56a4ce6ad514d74aa..739c512c15cb39028af5cb9260d79bf6f22f7bfe 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -971,6 +971,7 @@ bool LayerTreeHostImpl::initializeRenderer(scoped_ptr<OutputSurface> outputSurfa
sendDidLoseOutputSurfaceRecursive(rootLayer());
}
// Note: order is important here.
+ m_pendingTree.reset();
enne (OOO) 2013/01/15 03:36:25 You should apply the if statement above on line 96
reveman 2013/01/15 04:05:13 Done.
m_renderer.reset();
m_tileManager.reset();
m_resourceProvider.reset();
@@ -1003,6 +1004,7 @@ bool LayerTreeHostImpl::initializeRenderer(scoped_ptr<OutputSurface> outputSurfa
m_renderer->setVisible(m_visible);
m_client->onCanDrawStateChanged(canDraw());
+ m_client->onHasPendingTreeStateChanged(pendingTree());
enne (OOO) 2013/01/15 03:36:25 This can go away too.
reveman 2013/01/15 04:05:13 Done.
return true;
}
« no previous file with comments | « no previous file | cc/picture_layer_impl.h » ('j') | cc/tile_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698