| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 } | 615 } |
| 616 | 616 |
| 617 CalculateRenderSurfaceLayerList( | 617 CalculateRenderSurfaceLayerList( |
| 618 inputs->root_layer->layer_tree_impl(), inputs->property_trees, | 618 inputs->root_layer->layer_tree_impl(), inputs->property_trees, |
| 619 inputs->render_surface_layer_list, inputs->can_render_to_separate_surface, | 619 inputs->render_surface_layer_list, inputs->can_render_to_separate_surface, |
| 620 inputs->max_texture_size); | 620 inputs->max_texture_size); |
| 621 | 621 |
| 622 if (inputs->verify_clip_tree_calculations) | 622 if (inputs->verify_clip_tree_calculations) |
| 623 draw_property_utils::VerifyClipTreeCalculations(visible_layer_list, | 623 draw_property_utils::VerifyClipTreeCalculations(visible_layer_list, |
| 624 inputs->property_trees); | 624 inputs->property_trees); |
| 625 if (inputs->verify_transform_tree_calculations) | |
| 626 draw_property_utils::VerifyTransformTreeCalculations( | |
| 627 visible_layer_list, inputs->property_trees); | |
| 628 | 625 |
| 629 if (should_measure_property_tree_performance) { | 626 if (should_measure_property_tree_performance) { |
| 630 TRACE_EVENT_END0(TRACE_DISABLED_BY_DEFAULT("cc.debug.cdp-perf"), | 627 TRACE_EVENT_END0(TRACE_DISABLED_BY_DEFAULT("cc.debug.cdp-perf"), |
| 631 "LayerTreeHostCommon::CalculateDrawProperties"); | 628 "LayerTreeHostCommon::CalculateDrawProperties"); |
| 632 } | 629 } |
| 633 | 630 |
| 634 // A root layer render_surface should always exist after | 631 // A root layer render_surface should always exist after |
| 635 // CalculateDrawProperties. | 632 // CalculateDrawProperties. |
| 636 DCHECK(inputs->root_layer->render_surface()); | 633 DCHECK(inputs->root_layer->render_surface()); |
| 637 } | 634 } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 | 713 |
| 717 PropertyTrees* GetPropertyTrees(Layer* layer) { | 714 PropertyTrees* GetPropertyTrees(Layer* layer) { |
| 718 return layer->GetLayerTree()->property_trees(); | 715 return layer->GetLayerTree()->property_trees(); |
| 719 } | 716 } |
| 720 | 717 |
| 721 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { | 718 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { |
| 722 return layer->layer_tree_impl()->property_trees(); | 719 return layer->layer_tree_impl()->property_trees(); |
| 723 } | 720 } |
| 724 | 721 |
| 725 } // namespace cc | 722 } // namespace cc |
| OLD | NEW |