| 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 } | 356 } |
| 357 | 357 |
| 358 void LayerTreeHost::WillCommit() { | 358 void LayerTreeHost::WillCommit() { |
| 359 swap_promise_manager_.WillCommit(); | 359 swap_promise_manager_.WillCommit(); |
| 360 client_->WillCommit(); | 360 client_->WillCommit(); |
| 361 } | 361 } |
| 362 | 362 |
| 363 | 363 |
| 364 void LayerTreeHost::UpdateDeferCommitsInternal() { | 364 void LayerTreeHost::UpdateDeferCommitsInternal() { |
| 365 proxy_->SetDeferCommits(defer_commits_ || | 365 proxy_->SetDeferCommits(defer_commits_ || |
| 366 (settings_.needs_valid_local_surface_id && | 366 (settings_.enable_surface_synchronization && |
| 367 !local_surface_id_.is_valid())); | 367 !local_surface_id_.is_valid())); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void LayerTreeHost::CommitComplete() { | 370 void LayerTreeHost::CommitComplete() { |
| 371 source_frame_number_++; | 371 source_frame_number_++; |
| 372 client_->DidCommit(); | 372 client_->DidCommit(); |
| 373 if (did_complete_scale_animation_) { | 373 if (did_complete_scale_animation_) { |
| 374 client_->DidCompletePageScaleAnimation(); | 374 client_->DidCompletePageScaleAnimation(); |
| 375 did_complete_scale_animation_ = false; | 375 did_complete_scale_animation_ = false; |
| 376 } | 376 } |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 LayerListReverseIterator<Layer> LayerTreeHost::rend() { | 1435 LayerListReverseIterator<Layer> LayerTreeHost::rend() { |
| 1436 return LayerListReverseIterator<Layer>(nullptr); | 1436 return LayerListReverseIterator<Layer>(nullptr); |
| 1437 } | 1437 } |
| 1438 | 1438 |
| 1439 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 1439 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
| 1440 for (auto* layer : *this) | 1440 for (auto* layer : *this) |
| 1441 layer->SetNeedsDisplay(); | 1441 layer->SetNeedsDisplay(); |
| 1442 } | 1442 } |
| 1443 | 1443 |
| 1444 } // namespace cc | 1444 } // namespace cc |
| OLD | NEW |