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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 } | 714 } |
715 | 715 |
716 bool LayerTreeHost::CommitRequested() const { | 716 bool LayerTreeHost::CommitRequested() const { |
717 return proxy_->CommitRequested(); | 717 return proxy_->CommitRequested(); |
718 } | 718 } |
719 | 719 |
720 bool LayerTreeHost::BeginMainFrameRequested() const { | 720 bool LayerTreeHost::BeginMainFrameRequested() const { |
721 return proxy_->BeginMainFrameRequested(); | 721 return proxy_->BeginMainFrameRequested(); |
722 } | 722 } |
723 | 723 |
724 | |
725 void LayerTreeHost::SetNextCommitWaitsForActivation() { | 724 void LayerTreeHost::SetNextCommitWaitsForActivation() { |
726 proxy_->SetNextCommitWaitsForActivation(); | 725 proxy_->SetNextCommitWaitsForActivation(); |
727 } | 726 } |
728 | 727 |
729 void LayerTreeHost::SetNextCommitForcesRedraw() { | 728 void LayerTreeHost::SetNextCommitForcesRedraw() { |
730 next_commit_forces_redraw_ = true; | 729 next_commit_forces_redraw_ = true; |
731 proxy_->SetNeedsUpdateLayers(); | 730 proxy_->SetNeedsUpdateLayers(); |
732 } | 731 } |
733 | 732 |
734 void LayerTreeHost::SetAnimationEvents( | 733 void LayerTreeHost::SetAnimationEvents( |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1638 [seq_num](Layer* layer) { | 1637 [seq_num](Layer* layer) { |
1639 layer->set_property_tree_sequence_number(seq_num); | 1638 layer->set_property_tree_sequence_number(seq_num); |
1640 }, | 1639 }, |
1641 CallFunctionLayerType::ALL_LAYERS); | 1640 CallFunctionLayerType::ALL_LAYERS); |
1642 | 1641 |
1643 surface_id_namespace_ = proto.surface_id_namespace(); | 1642 surface_id_namespace_ = proto.surface_id_namespace(); |
1644 next_surface_sequence_ = proto.next_surface_sequence(); | 1643 next_surface_sequence_ = proto.next_surface_sequence(); |
1645 } | 1644 } |
1646 | 1645 |
1647 } // namespace cc | 1646 } // namespace cc |
OLD | NEW |