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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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::AsValueInto(base::debug::TracedValue* state) const { | 820 void LayerTreeImpl::AsValueInto(base::debug::TracedValue* state) const { |
821 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); | 821 TracedValue::MakeDictIntoImplicitSnapshot(state, "cc::LayerTreeImpl", this); |
822 state->SetInteger("set_source_frame_number", source_frame_number_); | |
danakj
2014/08/22 23:09:32
why set_?
| |
822 | 823 |
823 state->BeginDictionary("root_layer"); | 824 state->BeginDictionary("root_layer"); |
824 root_layer_->AsValueInto(state); | 825 root_layer_->AsValueInto(state); |
825 state->EndDictionary(); | 826 state->EndDictionary(); |
826 | 827 |
827 state->BeginArray("render_surface_layer_list"); | 828 state->BeginArray("render_surface_layer_list"); |
828 typedef LayerIterator<LayerImpl> LayerIteratorType; | 829 typedef LayerIterator<LayerImpl> LayerIteratorType; |
829 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); | 830 LayerIteratorType end = LayerIteratorType::End(&render_surface_layer_list_); |
830 for (LayerIteratorType it = LayerIteratorType::Begin( | 831 for (LayerIteratorType it = LayerIteratorType::Begin( |
831 &render_surface_layer_list_); it != end; ++it) { | 832 &render_surface_layer_list_); it != end; ++it) { |
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1387 | 1388 |
1388 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1389 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
1389 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1390 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
1390 } | 1391 } |
1391 | 1392 |
1392 void LayerTreeImpl::InputScrollAnimationFinished() { | 1393 void LayerTreeImpl::InputScrollAnimationFinished() { |
1393 layer_tree_host_impl_->ScrollEnd(); | 1394 layer_tree_host_impl_->ScrollEnd(); |
1394 } | 1395 } |
1395 | 1396 |
1396 } // namespace cc | 1397 } // namespace cc |
OLD | NEW |