| 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 |
| 570 void LayerTreeHost::SetNeedsAnimate() { | 574 void LayerTreeHost::SetNeedsAnimate() { |
| 571 proxy_->SetNeedsAnimate(); | 575 proxy_->SetNeedsAnimate(); |
| 572 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 576 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
| 573 } | 577 } |
| 574 | 578 |
| 575 void LayerTreeHost::SetNeedsUpdateLayers() { | 579 void LayerTreeHost::SetNeedsUpdateLayers() { |
| 576 proxy_->SetNeedsUpdateLayers(); | 580 proxy_->SetNeedsUpdateLayers(); |
| 577 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 581 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
| 578 } | 582 } |
| 579 | 583 |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 | 1131 |
| 1128 surface_client_id_ = proto.surface_client_id(); | 1132 surface_client_id_ = proto.surface_client_id(); |
| 1129 next_surface_sequence_ = proto.next_surface_sequence(); | 1133 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1130 } | 1134 } |
| 1131 | 1135 |
| 1132 AnimationHost* LayerTreeHost::animation_host() const { | 1136 AnimationHost* LayerTreeHost::animation_host() const { |
| 1133 return layer_tree_->animation_host(); | 1137 return layer_tree_->animation_host(); |
| 1134 } | 1138 } |
| 1135 | 1139 |
| 1136 } // namespace cc | 1140 } // namespace cc |
| OLD | NEW |