OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.h" | 5 #include "cc/trees/layer_tree.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/animation/animation_host.h" | 9 #include "cc/animation/animation_host.h" |
10 #include "cc/input/page_scale_animation.h" | 10 #include "cc/input/page_scale_animation.h" |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 713 |
714 LayerListReverseIterator<Layer> LayerTree::rend() { | 714 LayerListReverseIterator<Layer> LayerTree::rend() { |
715 return LayerListReverseIterator<Layer>(nullptr); | 715 return LayerListReverseIterator<Layer>(nullptr); |
716 } | 716 } |
717 | 717 |
718 void LayerTree::SetNeedsDisplayOnAllLayers() { | 718 void LayerTree::SetNeedsDisplayOnAllLayers() { |
719 for (auto* layer : *this) | 719 for (auto* layer : *this) |
720 layer->SetNeedsDisplay(); | 720 layer->SetNeedsDisplay(); |
721 } | 721 } |
722 | 722 |
723 UIResourceManager* LayerTree::GetUIResourceManager() const { | |
724 return layer_tree_host_->GetUIResourceManager(); | |
725 } | |
726 | |
727 const LayerTreeSettings& LayerTree::GetSettings() const { | |
728 return layer_tree_host_->GetSettings(); | |
729 } | |
730 | |
731 } // namespace cc | 723 } // namespace cc |
OLD | NEW |