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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 } | 662 } |
663 | 663 |
664 bool LayerTreeHost::CommitRequested() const { | 664 bool LayerTreeHost::CommitRequested() const { |
665 return proxy_->CommitRequested(); | 665 return proxy_->CommitRequested(); |
666 } | 666 } |
667 | 667 |
668 bool LayerTreeHost::BeginMainFrameRequested() const { | 668 bool LayerTreeHost::BeginMainFrameRequested() const { |
669 return proxy_->BeginMainFrameRequested(); | 669 return proxy_->BeginMainFrameRequested(); |
670 } | 670 } |
671 | 671 |
672 | |
673 void LayerTreeHost::SetNextCommitWaitsForActivation() { | 672 void LayerTreeHost::SetNextCommitWaitsForActivation() { |
674 proxy_->SetNextCommitWaitsForActivation(); | 673 proxy_->SetNextCommitWaitsForActivation(); |
675 } | 674 } |
676 | 675 |
677 void LayerTreeHost::SetNextCommitForcesRedraw() { | 676 void LayerTreeHost::SetNextCommitForcesRedraw() { |
678 next_commit_forces_redraw_ = true; | 677 next_commit_forces_redraw_ = true; |
679 proxy_->SetNeedsUpdateLayers(); | 678 proxy_->SetNeedsUpdateLayers(); |
680 } | 679 } |
681 | 680 |
682 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEvents> events) { | 681 void LayerTreeHost::SetAnimationEvents(scoped_ptr<AnimationEvents> events) { |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 LayerTreeHostCommon::CallFunctionForSubtree( | 1579 LayerTreeHostCommon::CallFunctionForSubtree( |
1581 root_layer(), [seq_num](Layer* layer) { | 1580 root_layer(), [seq_num](Layer* layer) { |
1582 layer->set_property_tree_sequence_number(seq_num); | 1581 layer->set_property_tree_sequence_number(seq_num); |
1583 }); | 1582 }); |
1584 | 1583 |
1585 surface_id_namespace_ = proto.surface_id_namespace(); | 1584 surface_id_namespace_ = proto.surface_id_namespace(); |
1586 next_surface_sequence_ = proto.next_surface_sequence(); | 1585 next_surface_sequence_ = proto.next_surface_sequence(); |
1587 } | 1586 } |
1588 | 1587 |
1589 } // namespace cc | 1588 } // namespace cc |
OLD | NEW |