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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 643 |
644 void LayerTreeHost::SetDeferCommits(bool defer_commits) { | 644 void LayerTreeHost::SetDeferCommits(bool defer_commits) { |
645 proxy_->SetDeferCommits(defer_commits); | 645 proxy_->SetDeferCommits(defer_commits); |
646 } | 646 } |
647 | 647 |
648 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 648 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
649 for (auto* layer : *this) | 649 for (auto* layer : *this) |
650 layer->SetNeedsDisplay(); | 650 layer->SetNeedsDisplay(); |
651 } | 651 } |
652 | 652 |
653 void LayerTreeHost::SetOutputIsSecure(bool output_is_secure) { | |
654 proxy_->SetOutputIsSecure(output_is_secure); | |
655 } | |
656 | |
657 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { | 653 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { |
658 return proxy_->GetRendererCapabilities(); | 654 return proxy_->GetRendererCapabilities(); |
659 } | 655 } |
660 | 656 |
661 void LayerTreeHost::SetNeedsAnimate() { | 657 void LayerTreeHost::SetNeedsAnimate() { |
662 proxy_->SetNeedsAnimate(); | 658 proxy_->SetNeedsAnimate(); |
663 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 659 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
664 } | 660 } |
665 | 661 |
666 void LayerTreeHost::SetNeedsUpdateLayers() { | 662 void LayerTreeHost::SetNeedsUpdateLayers() { |
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 int seq_num = property_trees_.sequence_number; | 1655 int seq_num = property_trees_.sequence_number; |
1660 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { | 1656 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { |
1661 layer->set_property_tree_sequence_number(seq_num); | 1657 layer->set_property_tree_sequence_number(seq_num); |
1662 }); | 1658 }); |
1663 | 1659 |
1664 surface_id_namespace_ = proto.surface_id_namespace(); | 1660 surface_id_namespace_ = proto.surface_id_namespace(); |
1665 next_surface_sequence_ = proto.next_surface_sequence(); | 1661 next_surface_sequence_ = proto.next_surface_sequence(); |
1666 } | 1662 } |
1667 | 1663 |
1668 } // namespace cc | 1664 } // namespace cc |
OLD | NEW |