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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 } | 819 } |
820 | 820 |
821 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { | 821 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { |
822 return layer_tree_host_impl_->debug_rect_history(); | 822 return layer_tree_host_impl_->debug_rect_history(); |
823 } | 823 } |
824 | 824 |
825 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { | 825 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { |
826 return layer_tree_host_impl_->animation_registrar(); | 826 return layer_tree_host_impl_->animation_registrar(); |
827 } | 827 } |
828 | 828 |
| 829 void LayerTreeImpl::AllTilesForTracingInto(std::set<const Tile*>* tiles) const { |
| 830 typedef LayerIterator<LayerImpl> LayerIteratorType; |
| 831 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); |
| 832 for (LayerIteratorType it = |
| 833 LayerIteratorType::Begin(&render_surface_layer_list_); |
| 834 it != end; |
| 835 ++it) { |
| 836 if (!it.represents_itself()) |
| 837 continue; |
| 838 LayerImpl* layer_impl = *it; |
| 839 layer_impl->AllTilesForTracingInto(tiles); |
| 840 } |
| 841 } |
| 842 |
829 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const { | 843 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const { |
830 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); | 844 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); |
831 | 845 |
832 state->BeginDictionary("root_layer"); | 846 state->BeginDictionary("root_layer"); |
833 root_layer_->AsValueInto(state); | 847 root_layer_->AsValueInto(state); |
834 state->EndDictionary(); | 848 state->EndDictionary(); |
835 | 849 |
836 state->BeginArray("render_surface_layer_list"); | 850 state->BeginArray("render_surface_layer_list"); |
837 typedef LayerIterator<LayerImpl> LayerIteratorType; | 851 typedef LayerIterator<LayerImpl> LayerIteratorType; |
838 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); | 852 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 | 1410 |
1397 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1411 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
1398 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1412 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
1399 } | 1413 } |
1400 | 1414 |
1401 void LayerTreeImpl::InputScrollAnimationFinished() { | 1415 void LayerTreeImpl::InputScrollAnimationFinished() { |
1402 layer_tree_host_impl_->ScrollEnd(); | 1416 layer_tree_host_impl_->ScrollEnd(); |
1403 } | 1417 } |
1404 | 1418 |
1405 } // namespace cc | 1419 } // namespace cc |
OLD | NEW |