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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 } | 810 } |
811 | 811 |
812 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { | 812 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { |
813 return layer_tree_host_impl_->debug_rect_history(); | 813 return layer_tree_host_impl_->debug_rect_history(); |
814 } | 814 } |
815 | 815 |
816 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { | 816 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { |
817 return layer_tree_host_impl_->animation_registrar(); | 817 return layer_tree_host_impl_->animation_registrar(); |
818 } | 818 } |
819 | 819 |
| 820 void LayerTreeImpl::GetAllTilesForTracing(std::set<const Tile*>* tiles) const { |
| 821 typedef LayerIterator<LayerImpl> LayerIteratorType; |
| 822 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); |
| 823 for (LayerIteratorType it = |
| 824 LayerIteratorType::Begin(&render_surface_layer_list_); |
| 825 it != end; |
| 826 ++it) { |
| 827 if (!it.represents_itself()) |
| 828 continue; |
| 829 LayerImpl* layer_impl = *it; |
| 830 layer_impl->GetAllTilesForTracing(tiles); |
| 831 } |
| 832 } |
| 833 |
820 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const { | 834 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const { |
821 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); | 835 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); |
822 state->SetInteger("source_frame_number", source_frame_number_); | 836 state->SetInteger("source_frame_number", source_frame_number_); |
823 | 837 |
824 state->BeginDictionary("root_layer"); | 838 state->BeginDictionary("root_layer"); |
825 root_layer_->AsValueInto(state); | 839 root_layer_->AsValueInto(state); |
826 state->EndDictionary(); | 840 state->EndDictionary(); |
827 | 841 |
828 state->BeginArray("render_surface_layer_list"); | 842 state->BeginArray("render_surface_layer_list"); |
829 typedef LayerIterator<LayerImpl> LayerIteratorType; | 843 typedef LayerIterator<LayerImpl> LayerIteratorType; |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1407 | 1421 |
1408 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1422 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
1409 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1423 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
1410 } | 1424 } |
1411 | 1425 |
1412 void LayerTreeImpl::InputScrollAnimationFinished() { | 1426 void LayerTreeImpl::InputScrollAnimationFinished() { |
1413 layer_tree_host_impl_->ScrollEnd(); | 1427 layer_tree_host_impl_->ScrollEnd(); |
1414 } | 1428 } |
1415 | 1429 |
1416 } // namespace cc | 1430 } // namespace cc |
OLD | NEW |