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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 1841783003: Update property trees' bounds delta before updating viewport container sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved UpdateViewportContainerSizes instead Created 4 years, 9 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/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 32843bc649493dc95696c0341f55aa2cae745027..92819160c6d5c643b82af935bec906e6e225e573 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -1986,8 +1986,6 @@ void LayerTreeHostImpl::ActivateSyncTree() {
DCHECK(!recycle_tree_);
pending_tree_.swap(recycle_tree_);
- UpdateViewportContainerSizes();
-
// If we commit to the active tree directly, this is already done during
// commit.
ActivateAnimations();
@@ -1996,8 +1994,11 @@ void LayerTreeHostImpl::ActivateSyncTree() {
}
// bounds_delta isn't a pushed property, so the newly-pushed property tree
- // won't already account for current bounds_delta values.
+ // won't already account for current bounds_delta values. This needs to
+ // happen before calling UpdateViewportContainerSizes().
active_tree_->UpdatePropertyTreesForBoundsDelta();
+ UpdateViewportContainerSizes();
+
active_tree_->DidBecomeActive();
client_->RenewTreePriority();
// If we have any picture layers, then by activating we also modified tile
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698