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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11826017: cc: Preserve currently scrolling layer during tree activation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FULL STOP 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/layer_tree_impl.h » ('j') | no next file with comments »
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 9d42698bae2a192a8e6884cd6011c818bd8040d1..ba7e7d8f2ff4db63d6eca2ab61db2737f444e69e 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -1026,6 +1026,8 @@ void LayerTreeHostImpl::activatePendingTreeIfNeeded()
void LayerTreeHostImpl::activatePendingTree()
{
CHECK(m_pendingTree);
+
+ m_activeTree->PushPersistedState(m_pendingTree.get());
m_activeTree.swap(m_pendingTree);
// TODO(enne): consider recycling this tree to prevent layer churn
m_pendingTree.reset();
« no previous file with comments | « no previous file | cc/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698