| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 TRACE_EVENT_ASYNC_END1( | 630 TRACE_EVENT_ASYNC_END1( |
| 631 "cdp.perf", "jitter", | 631 "cdp.perf", "jitter", |
| 632 inputs->root_layer->layer_tree_impl()->source_frame_number(), "value", | 632 inputs->root_layer->layer_tree_impl()->source_frame_number(), "value", |
| 633 jitter); | 633 jitter); |
| 634 } | 634 } |
| 635 } | 635 } |
| 636 } | 636 } |
| 637 | 637 |
| 638 void LayerTreeHostCommon::CalculateDrawPropertiesForTesting( | 638 void LayerTreeHostCommon::CalculateDrawPropertiesForTesting( |
| 639 CalcDrawPropsImplInputsForTesting* inputs) { | 639 CalcDrawPropsImplInputsForTesting* inputs) { |
| 640 PropertyTreeBuilder::PreCalculateMetaInformationForTesting( | |
| 641 inputs->root_layer); | |
| 642 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); | 640 CalculateDrawPropertiesInternal(inputs, BUILD_PROPERTY_TREES_IF_NEEDED); |
| 643 } | 641 } |
| 644 | 642 |
| 645 PropertyTrees* GetPropertyTrees(Layer* layer) { | 643 PropertyTrees* GetPropertyTrees(Layer* layer) { |
| 646 return layer->layer_tree_host()->property_trees(); | 644 return layer->layer_tree_host()->property_trees(); |
| 647 } | 645 } |
| 648 | 646 |
| 649 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { | 647 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { |
| 650 return layer->layer_tree_impl()->property_trees(); | 648 return layer->layer_tree_impl()->property_trees(); |
| 651 } | 649 } |
| 652 | 650 |
| 653 } // namespace cc | 651 } // namespace cc |
| OLD | NEW |