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 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 return; | 560 return; |
561 | 561 |
562 output_surface_lost_ = true; | 562 output_surface_lost_ = true; |
563 SetNeedsCommit(); | 563 SetNeedsCommit(); |
564 } | 564 } |
565 | 565 |
566 void LayerTreeHost::SetDeferCommits(bool defer_commits) { | 566 void LayerTreeHost::SetDeferCommits(bool defer_commits) { |
567 proxy_->SetDeferCommits(defer_commits); | 567 proxy_->SetDeferCommits(defer_commits); |
568 } | 568 } |
569 | 569 |
570 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { | |
571 return proxy_->GetRendererCapabilities(); | |
572 } | |
573 | |
574 void LayerTreeHost::SetNeedsAnimate() { | 570 void LayerTreeHost::SetNeedsAnimate() { |
575 proxy_->SetNeedsAnimate(); | 571 proxy_->SetNeedsAnimate(); |
576 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 572 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
577 } | 573 } |
578 | 574 |
579 void LayerTreeHost::SetNeedsUpdateLayers() { | 575 void LayerTreeHost::SetNeedsUpdateLayers() { |
580 proxy_->SetNeedsUpdateLayers(); | 576 proxy_->SetNeedsUpdateLayers(); |
581 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 577 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
582 } | 578 } |
583 | 579 |
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1131 | 1127 |
1132 surface_client_id_ = proto.surface_client_id(); | 1128 surface_client_id_ = proto.surface_client_id(); |
1133 next_surface_sequence_ = proto.next_surface_sequence(); | 1129 next_surface_sequence_ = proto.next_surface_sequence(); |
1134 } | 1130 } |
1135 | 1131 |
1136 AnimationHost* LayerTreeHost::animation_host() const { | 1132 AnimationHost* LayerTreeHost::animation_host() const { |
1137 return layer_tree_->animation_host(); | 1133 return layer_tree_->animation_host(); |
1138 } | 1134 } |
1139 | 1135 |
1140 } // namespace cc | 1136 } // namespace cc |
OLD | NEW |