| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { | 570 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { |
| 571 return proxy_->GetRendererCapabilities(); | 571 return proxy_->GetRendererCapabilities(); |
| 572 } | 572 } |
| 573 | 573 |
| 574 DISABLE_CFI_PERF |
| 574 void LayerTreeHost::SetNeedsAnimate() { | 575 void LayerTreeHost::SetNeedsAnimate() { |
| 575 proxy_->SetNeedsAnimate(); | 576 proxy_->SetNeedsAnimate(); |
| 576 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 577 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
| 577 } | 578 } |
| 578 | 579 |
| 580 DISABLE_CFI_PERF |
| 579 void LayerTreeHost::SetNeedsUpdateLayers() { | 581 void LayerTreeHost::SetNeedsUpdateLayers() { |
| 580 proxy_->SetNeedsUpdateLayers(); | 582 proxy_->SetNeedsUpdateLayers(); |
| 581 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 583 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
| 582 } | 584 } |
| 583 | 585 |
| 584 void LayerTreeHost::SetNeedsCommit() { | 586 void LayerTreeHost::SetNeedsCommit() { |
| 585 proxy_->SetNeedsCommit(); | 587 proxy_->SetNeedsCommit(); |
| 586 NotifySwapPromiseMonitorsOfSetNeedsCommit(); | 588 NotifySwapPromiseMonitorsOfSetNeedsCommit(); |
| 587 } | 589 } |
| 588 | 590 |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 | 1136 |
| 1135 surface_client_id_ = proto.surface_client_id(); | 1137 surface_client_id_ = proto.surface_client_id(); |
| 1136 next_surface_sequence_ = proto.next_surface_sequence(); | 1138 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1137 } | 1139 } |
| 1138 | 1140 |
| 1139 AnimationHost* LayerTreeHost::animation_host() const { | 1141 AnimationHost* LayerTreeHost::animation_host() const { |
| 1140 return layer_tree_->animation_host(); | 1142 return layer_tree_->animation_host(); |
| 1141 } | 1143 } |
| 1142 | 1144 |
| 1143 } // namespace cc | 1145 } // namespace cc |
| OLD | NEW |