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_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 TRACE_EVENT_ASYNC_END1( | 669 TRACE_EVENT_ASYNC_END1( |
670 "cdp.perf", "jitter", | 670 "cdp.perf", "jitter", |
671 inputs->root_layer->layer_tree_impl()->source_frame_number(), "value", | 671 inputs->root_layer->layer_tree_impl()->source_frame_number(), "value", |
672 jitter); | 672 jitter); |
673 } | 673 } |
674 } | 674 } |
675 } | 675 } |
676 | 676 |
677 void LayerTreeHostCommon::CalculateDrawPropertiesForTesting( | 677 void LayerTreeHostCommon::CalculateDrawPropertiesForTesting( |
678 CalcDrawPropsImplInputsForTesting* inputs) { | 678 CalcDrawPropsImplInputsForTesting* inputs) { |
679 inputs->root_layer->layer_tree_impl()->BuildLayerListForTesting(); | |
680 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( | 679 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( |
681 inputs->root_layer); | 680 inputs->root_layer); |
682 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); | 681 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); |
683 } | 682 } |
684 | 683 |
685 PropertyTrees* GetPropertyTrees(Layer* layer) { | 684 PropertyTrees* GetPropertyTrees(Layer* layer) { |
686 return layer->layer_tree_host()->property_trees(); | 685 return layer->layer_tree_host()->property_trees(); |
687 } | 686 } |
688 | 687 |
689 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { | 688 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { |
690 return layer->layer_tree_impl()->property_trees(); | 689 return layer->layer_tree_impl()->property_trees(); |
691 } | 690 } |
692 | 691 |
693 } // namespace cc | 692 } // namespace cc |
OLD | NEW |