| 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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 if (visible_ == visible) | 542 if (visible_ == visible) |
| 543 return; | 543 return; |
| 544 visible_ = visible; | 544 visible_ = visible; |
| 545 proxy_->SetVisible(visible); | 545 proxy_->SetVisible(visible); |
| 546 } | 546 } |
| 547 | 547 |
| 548 bool LayerTreeHost::IsVisible() const { | 548 bool LayerTreeHost::IsVisible() const { |
| 549 return visible_; | 549 return visible_; |
| 550 } | 550 } |
| 551 | 551 |
| 552 void LayerTreeHost::SetIsFullscreen(bool is_fullscreen) { |
| 553 if (is_fullscreen_ == is_fullscreen) |
| 554 return; |
| 555 is_fullscreen_ = is_fullscreen; |
| 556 proxy_->SetIsFullscreen(is_fullscreen); |
| 557 } |
| 558 |
| 552 void LayerTreeHost::NotifyInputThrottledUntilCommit() { | 559 void LayerTreeHost::NotifyInputThrottledUntilCommit() { |
| 553 proxy_->NotifyInputThrottledUntilCommit(); | 560 proxy_->NotifyInputThrottledUntilCommit(); |
| 554 } | 561 } |
| 555 | 562 |
| 556 void LayerTreeHost::LayoutAndUpdateLayers() { | 563 void LayerTreeHost::LayoutAndUpdateLayers() { |
| 557 DCHECK(IsSingleThreaded()); | 564 DCHECK(IsSingleThreaded()); |
| 558 // This function is only valid when not using the scheduler. | 565 // This function is only valid when not using the scheduler. |
| 559 DCHECK(!settings_.single_thread_proxy_scheduler); | 566 DCHECK(!settings_.single_thread_proxy_scheduler); |
| 560 RequestMainFrameUpdate(); | 567 RequestMainFrameUpdate(); |
| 561 UpdateLayers(); | 568 UpdateLayers(); |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 1450 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
| 1444 for (auto* layer : *this) | 1451 for (auto* layer : *this) |
| 1445 layer->SetNeedsDisplay(); | 1452 layer->SetNeedsDisplay(); |
| 1446 } | 1453 } |
| 1447 | 1454 |
| 1448 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1455 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
| 1449 has_copy_request_ = has_copy_request; | 1456 has_copy_request_ = has_copy_request; |
| 1450 } | 1457 } |
| 1451 | 1458 |
| 1452 } // namespace cc | 1459 } // namespace cc |
| OLD | NEW |