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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 2445093002: cc/blimp: Add synchronization for scroll/scale state. (Closed)
Patch Set: minor fix Created 4 years, 2 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/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_impl.h » ('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 30de9244e1f9f394e5109c14b6bb4f78b37dfbd6..fdf78573e7afe77d9eac862959c4e8a7da604853 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -341,6 +341,11 @@ void LayerTreeHostImpl::BeginCommit() {
void LayerTreeHostImpl::CommitComplete() {
TRACE_EVENT0("cc", "LayerTreeHostImpl::CommitComplete");
+ // If the state was committed to the pending tree, apply any reflected deltas
danakj 2016/10/25 22:14:43 sync tree
Khushal 2016/10/26 01:03:29 Done.
+ // that were not applied on the main thread.
danakj 2016/10/25 22:14:43 applied during the main frame
Khushal 2016/10/26 01:03:29 Done.
+ if (pending_tree())
+ pending_tree()->ApplyReflectedMainFrameState();
danakj 2016/10/25 22:14:43 Shouldn't it do this on the sync tree always?
Khushal 2016/10/25 22:44:33 Hmmm, if I copy to the pending base here, I don't
danakj 2016/10/25 23:55:55 That sounds ok I think. If this sounds like comple
Khushal 2016/10/26 01:03:29 Its not that complex to do, but we won't use it. S
+
if (CommitToActiveTree()) {
// We have to activate animations here or "IsActive()" is true on the layers
// but the animations aren't activated yet so they get ignored by
« no previous file with comments | « cc/trees/layer_tree_host_common.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698