| 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(); |
| 679 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( | 680 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( |
| 680 inputs->root_layer); | 681 inputs->root_layer); |
| 681 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); | 682 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); |
| 682 } | 683 } |
| 683 | 684 |
| 684 PropertyTrees* GetPropertyTrees(Layer* layer) { | 685 PropertyTrees* GetPropertyTrees(Layer* layer) { |
| 685 return layer->layer_tree_host()->property_trees(); | 686 return layer->layer_tree_host()->property_trees(); |
| 686 } | 687 } |
| 687 | 688 |
| 688 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { | 689 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { |
| 689 return layer->layer_tree_impl()->property_trees(); | 690 return layer->layer_tree_impl()->property_trees(); |
| 690 } | 691 } |
| 691 | 692 |
| 692 } // namespace cc | 693 } // namespace cc |
| OLD | NEW |