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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 1950243005: Communicate MT changes to impl-only scroll offset animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 517
518 sync_tree->set_has_ever_been_drawn(false); 518 sync_tree->set_has_ever_been_drawn(false);
519 519
520 { 520 {
521 TRACE_EVENT0("cc", "LayerTreeHost::PushProperties"); 521 TRACE_EVENT0("cc", "LayerTreeHost::PushProperties");
522 522
523 TreeSynchronizer::PushLayerProperties(this, sync_tree); 523 TreeSynchronizer::PushLayerProperties(this, sync_tree);
524 524
525 TRACE_EVENT0("cc", "LayerTreeHost::AnimationHost::PushProperties"); 525 TRACE_EVENT0("cc", "LayerTreeHost::AnimationHost::PushProperties");
526 DCHECK(host_impl->animation_host()); 526 DCHECK(host_impl->animation_host());
527 animation_host_->PushPropertiesTo(host_impl->animation_host()); 527 animation_host_->PushPropertiesTo(
528 host_impl->animation_host(),
529 host_impl->CurrentBeginFrameArgs().frame_time);
528 } 530 }
529 531
530 // This must happen after synchronizing property trees and after push 532 // This must happen after synchronizing property trees and after push
531 // properties, which updates property tree indices. 533 // properties, which updates property tree indices.
532 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); 534 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread();
533 535
534 // This must happen after synchronizing property trees and after pushing 536 // This must happen after synchronizing property trees and after pushing
535 // properties, which updates the clobber_active_value flag. 537 // properties, which updates the clobber_active_value flag.
536 sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_); 538 sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_);
537 539
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 int seq_num = property_trees_.sequence_number; 1636 int seq_num = property_trees_.sequence_number;
1635 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1637 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1636 layer->set_property_tree_sequence_number(seq_num); 1638 layer->set_property_tree_sequence_number(seq_num);
1637 }); 1639 });
1638 1640
1639 surface_id_namespace_ = proto.surface_id_namespace(); 1641 surface_id_namespace_ = proto.surface_id_namespace();
1640 next_surface_sequence_ = proto.next_surface_sequence(); 1642 next_surface_sequence_ = proto.next_surface_sequence();
1641 } 1643 }
1642 1644
1643 } // namespace cc 1645 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698