| OLD | NEW |
| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 | 529 |
| 530 // This must happen after synchronizing property trees and after push | 530 // This must happen after synchronizing property trees and after push |
| 531 // properties, which updates property tree indices. | 531 // properties, which updates property tree indices. |
| 532 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); | 532 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); |
| 533 | 533 |
| 534 // This must happen after synchronizing property trees and after pushing | 534 // This must happen after synchronizing property trees and after pushing |
| 535 // properties, which updates the clobber_active_value flag. | 535 // properties, which updates the clobber_active_value flag. |
| 536 sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_); | 536 sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_); |
| 537 | 537 |
| 538 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); | 538 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); |
| 539 property_trees_.ResetAllChangeTracking(PropertyTrees::ResetFlags::ALL_TREES); | 539 property_trees_.ResetAllChangeTracking(); |
| 540 } | 540 } |
| 541 | 541 |
| 542 void LayerTreeHost::WillCommit() { | 542 void LayerTreeHost::WillCommit() { |
| 543 OnCommitForSwapPromises(); | 543 OnCommitForSwapPromises(); |
| 544 client_->WillCommit(); | 544 client_->WillCommit(); |
| 545 } | 545 } |
| 546 | 546 |
| 547 void LayerTreeHost::UpdateHudLayer() { | 547 void LayerTreeHost::UpdateHudLayer() { |
| 548 if (debug_state_.ShowHudInfo()) { | 548 if (debug_state_.ShowHudInfo()) { |
| 549 if (!hud_layer_.get()) { | 549 if (!hud_layer_.get()) { |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 int seq_num = property_trees_.sequence_number; | 1668 int seq_num = property_trees_.sequence_number; |
| 1669 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { | 1669 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { |
| 1670 layer->set_property_tree_sequence_number(seq_num); | 1670 layer->set_property_tree_sequence_number(seq_num); |
| 1671 }); | 1671 }); |
| 1672 | 1672 |
| 1673 surface_id_namespace_ = proto.surface_id_namespace(); | 1673 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1674 next_surface_sequence_ = proto.next_surface_sequence(); | 1674 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1675 } | 1675 } |
| 1676 | 1676 |
| 1677 } // namespace cc | 1677 } // namespace cc |
| OLD | NEW |