| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 if (visible_ == visible) | 565 if (visible_ == visible) |
| 566 return; | 566 return; |
| 567 visible_ = visible; | 567 visible_ = visible; |
| 568 proxy_->SetVisible(visible); | 568 proxy_->SetVisible(visible); |
| 569 } | 569 } |
| 570 | 570 |
| 571 bool LayerTreeHost::IsVisible() const { | 571 bool LayerTreeHost::IsVisible() const { |
| 572 return visible_; | 572 return visible_; |
| 573 } | 573 } |
| 574 | 574 |
| 575 void LayerTreeHost::SetIsFullscreen(bool is_fullscreen) { |
| 576 if (is_fullscreen_ == is_fullscreen) |
| 577 return; |
| 578 is_fullscreen_ = is_fullscreen; |
| 579 proxy_->SetIsFullscreen(is_fullscreen); |
| 580 } |
| 581 |
| 575 void LayerTreeHost::NotifyInputThrottledUntilCommit() { | 582 void LayerTreeHost::NotifyInputThrottledUntilCommit() { |
| 576 proxy_->NotifyInputThrottledUntilCommit(); | 583 proxy_->NotifyInputThrottledUntilCommit(); |
| 577 } | 584 } |
| 578 | 585 |
| 579 void LayerTreeHost::LayoutAndUpdateLayers() { | 586 void LayerTreeHost::LayoutAndUpdateLayers() { |
| 580 DCHECK(IsSingleThreaded()); | 587 DCHECK(IsSingleThreaded()); |
| 581 // This function is only valid when not using the scheduler. | 588 // This function is only valid when not using the scheduler. |
| 582 DCHECK(!settings_.single_thread_proxy_scheduler); | 589 DCHECK(!settings_.single_thread_proxy_scheduler); |
| 583 RequestMainFrameUpdate(); | 590 RequestMainFrameUpdate(); |
| 584 UpdateLayers(); | 591 UpdateLayers(); |
| (...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 1492 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
| 1486 for (auto* layer : *this) | 1493 for (auto* layer : *this) |
| 1487 layer->SetNeedsDisplay(); | 1494 layer->SetNeedsDisplay(); |
| 1488 } | 1495 } |
| 1489 | 1496 |
| 1490 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { | 1497 void LayerTreeHost::SetHasCopyRequest(bool has_copy_request) { |
| 1491 has_copy_request_ = has_copy_request; | 1498 has_copy_request_ = has_copy_request; |
| 1492 } | 1499 } |
| 1493 | 1500 |
| 1494 } // namespace cc | 1501 } // namespace cc |
| OLD | NEW |