| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 } | 654 } |
| 655 | 655 |
| 656 bool LayerTreeHost::CommitRequested() const { | 656 bool LayerTreeHost::CommitRequested() const { |
| 657 return proxy_->CommitRequested(); | 657 return proxy_->CommitRequested(); |
| 658 } | 658 } |
| 659 | 659 |
| 660 bool LayerTreeHost::BeginMainFrameRequested() const { | 660 bool LayerTreeHost::BeginMainFrameRequested() const { |
| 661 return proxy_->BeginMainFrameRequested(); | 661 return proxy_->BeginMainFrameRequested(); |
| 662 } | 662 } |
| 663 | 663 |
| 664 | |
| 665 void LayerTreeHost::SetNextCommitWaitsForActivation() { | 664 void LayerTreeHost::SetNextCommitWaitsForActivation() { |
| 666 proxy_->SetNextCommitWaitsForActivation(); | 665 proxy_->SetNextCommitWaitsForActivation(); |
| 667 } | 666 } |
| 668 | 667 |
| 669 void LayerTreeHost::SetNextCommitForcesRedraw() { | 668 void LayerTreeHost::SetNextCommitForcesRedraw() { |
| 670 next_commit_forces_redraw_ = true; | 669 next_commit_forces_redraw_ = true; |
| 671 proxy_->SetNeedsUpdateLayers(); | 670 proxy_->SetNeedsUpdateLayers(); |
| 672 } | 671 } |
| 673 | 672 |
| 674 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEvents> events) { | 673 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEvents> events) { |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1592 LayerTreeHostCommon::CallFunctionForSubtree( | 1591 LayerTreeHostCommon::CallFunctionForSubtree( |
| 1593 root_layer(), [seq_num](Layer* layer) { | 1592 root_layer(), [seq_num](Layer* layer) { |
| 1594 layer->set_property_tree_sequence_number(seq_num); | 1593 layer->set_property_tree_sequence_number(seq_num); |
| 1595 }); | 1594 }); |
| 1596 | 1595 |
| 1597 surface_id_namespace_ = proto.surface_id_namespace(); | 1596 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1598 next_surface_sequence_ = proto.next_surface_sequence(); | 1597 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1599 } | 1598 } |
| 1600 | 1599 |
| 1601 } // namespace cc | 1600 } // namespace cc |
| OLD | NEW |