| 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 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface"); | 666 TRACE_EVENT0("cc", "LayerTreeHost::DidLoseOutputSurface"); |
| 667 DCHECK(task_runner_provider_->IsMainThread()); | 667 DCHECK(task_runner_provider_->IsMainThread()); |
| 668 | 668 |
| 669 if (output_surface_lost_) | 669 if (output_surface_lost_) |
| 670 return; | 670 return; |
| 671 | 671 |
| 672 output_surface_lost_ = true; | 672 output_surface_lost_ = true; |
| 673 SetNeedsCommit(); | 673 SetNeedsCommit(); |
| 674 } | 674 } |
| 675 | 675 |
| 676 void LayerTreeHost::FinishAllRendering() { | |
| 677 proxy_->FinishAllRendering(); | |
| 678 } | |
| 679 | |
| 680 void LayerTreeHost::SetDeferCommits(bool defer_commits) { | 676 void LayerTreeHost::SetDeferCommits(bool defer_commits) { |
| 681 proxy_->SetDeferCommits(defer_commits); | 677 proxy_->SetDeferCommits(defer_commits); |
| 682 } | 678 } |
| 683 | 679 |
| 684 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { | 680 void LayerTreeHost::SetNeedsDisplayOnAllLayers() { |
| 685 for (auto* layer : *this) | 681 for (auto* layer : *this) |
| 686 layer->SetNeedsDisplay(); | 682 layer->SetNeedsDisplay(); |
| 687 } | 683 } |
| 688 | 684 |
| 689 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { | 685 const RendererCapabilities& LayerTreeHost::GetRendererCapabilities() const { |
| (...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1675 | 1671 |
| 1676 surface_client_id_ = proto.surface_client_id(); | 1672 surface_client_id_ = proto.surface_client_id(); |
| 1677 next_surface_sequence_ = proto.next_surface_sequence(); | 1673 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1678 } | 1674 } |
| 1679 | 1675 |
| 1680 AnimationHost* LayerTreeHost::animation_host() const { | 1676 AnimationHost* LayerTreeHost::animation_host() const { |
| 1681 return layer_tree_.animation_host(); | 1677 return layer_tree_.animation_host(); |
| 1682 } | 1678 } |
| 1683 | 1679 |
| 1684 } // namespace cc | 1680 } // namespace cc |
| OLD | NEW |