| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 DCHECK(host_impl->animation_host()); | 474 DCHECK(host_impl->animation_host()); |
| 475 animation_host_->PushPropertiesTo(host_impl->animation_host()); | 475 animation_host_->PushPropertiesTo(host_impl->animation_host()); |
| 476 } | 476 } |
| 477 } | 477 } |
| 478 | 478 |
| 479 // This must happen after synchronizing property trees and after push | 479 // This must happen after synchronizing property trees and after push |
| 480 // properties, which updates property tree indices. | 480 // properties, which updates property tree indices. |
| 481 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); | 481 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); |
| 482 | 482 |
| 483 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); | 483 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); |
| 484 property_trees_.transform_tree.ResetChangeTracking(); |
| 484 } | 485 } |
| 485 | 486 |
| 486 void LayerTreeHost::WillCommit() { | 487 void LayerTreeHost::WillCommit() { |
| 487 OnCommitForSwapPromises(); | 488 OnCommitForSwapPromises(); |
| 488 client_->WillCommit(); | 489 client_->WillCommit(); |
| 489 } | 490 } |
| 490 | 491 |
| 491 void LayerTreeHost::UpdateHudLayer() { | 492 void LayerTreeHost::UpdateHudLayer() { |
| 492 if (debug_state_.ShowHudInfo()) { | 493 if (debug_state_.ShowHudInfo()) { |
| 493 if (!hud_layer_.get()) { | 494 if (!hud_layer_.get()) { |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1588 LayerTreeHostCommon::CallFunctionForSubtree( | 1589 LayerTreeHostCommon::CallFunctionForSubtree( |
| 1589 root_layer(), [seq_num](Layer* layer) { | 1590 root_layer(), [seq_num](Layer* layer) { |
| 1590 layer->set_property_tree_sequence_number(seq_num); | 1591 layer->set_property_tree_sequence_number(seq_num); |
| 1591 }); | 1592 }); |
| 1592 | 1593 |
| 1593 surface_id_namespace_ = proto.surface_id_namespace(); | 1594 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1594 next_surface_sequence_ = proto.next_surface_sequence(); | 1595 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1595 } | 1596 } |
| 1596 | 1597 |
| 1597 } // namespace cc | 1598 } // namespace cc |
| OLD | NEW |