Chromium Code Reviews| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 652 | 652 |
| 653 void LayerTreeHost::SetDeferCommits(bool defer_commits) { | 653 void LayerTreeHost::SetDeferCommits(bool defer_commits) { |
| 654 proxy_->SetDeferCommits(defer_commits); | 654 proxy_->SetDeferCommits(defer_commits); |
| 655 } | 655 } |
| 656 | 656 |
| 657 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 657 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
| 658 for (auto* layer : *this) | 658 for (auto* layer : *this) |
| 659 layer->SetNeedsDisplay(); | 659 layer->SetNeedsDisplay(); |
| 660 } | 660 } |
| 661 | 661 |
| 662 void LayerTreeHost::SetOutputIsSecure(bool output_is_secure) { | |
|
piman
2016/05/17 19:59:31
nit: also remove from header.
| |
| 663 proxy_->SetOutputIsSecure(output_is_secure); | |
| 664 } | |
| 665 | |
| 666 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { | 662 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { |
| 667 return proxy_->GetRendererCapabilities(); | 663 return proxy_->GetRendererCapabilities(); |
| 668 } | 664 } |
| 669 | 665 |
| 670 void LayerTreeHost::SetNeedsAnimate() { | 666 void LayerTreeHost::SetNeedsAnimate() { |
| 671 proxy_->SetNeedsAnimate(); | 667 proxy_->SetNeedsAnimate(); |
| 672 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 668 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
| 673 } | 669 } |
| 674 | 670 |
| 675 void LayerTreeHost::SetNeedsUpdateLayers() { | 671 void LayerTreeHost::SetNeedsUpdateLayers() { |
| (...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1661 int seq_num = property_trees_.sequence_number; | 1657 int seq_num = property_trees_.sequence_number; |
| 1662 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { | 1658 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { |
| 1663 layer->set_property_tree_sequence_number(seq_num); | 1659 layer->set_property_tree_sequence_number(seq_num); |
| 1664 }); | 1660 }); |
| 1665 | 1661 |
| 1666 surface_id_namespace_ = proto.surface_id_namespace(); | 1662 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1667 next_surface_sequence_ = proto.next_surface_sequence(); | 1663 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1668 } | 1664 } |
| 1669 | 1665 |
| 1670 } // namespace cc | 1666 } // namespace cc |
| OLD | NEW |