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

Unified Diff: cc/layer_tree_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 | « cc/layer_tree_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_impl.cc
diff --git a/cc/layer_tree_impl.cc b/cc/layer_tree_impl.cc
index e07fa03d2b0c43b7fbfa2ee2e2c119a55c2059c5..0f818e967d302a3ebf2e47952ef759658ee79f42 100644
--- a/cc/layer_tree_impl.cc
+++ b/cc/layer_tree_impl.cc
@@ -177,6 +177,12 @@ void LayerTreeImpl::UnregisterLayer(LayerImpl* layer) {
layer_id_map_.erase(layer->id());
}
+void LayerTreeImpl::PushPersistedState(LayerTreeImpl* pendingTree) {
+ int id = currently_scrolling_layer_ ? currently_scrolling_layer_->id() : 0;
+ pendingTree->set_currently_scrolling_layer(
+ LayerTreeHostCommon::findLayerInSubtree(pendingTree->RootLayer(), id));
+}
+
const LayerTreeSettings& LayerTreeImpl::settings() const {
return layer_tree_host_impl_->settings();
}
« no previous file with comments | « cc/layer_tree_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698