Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: cc/trees/layer_tree_host_common.cc

Issue 2266223002: cc: Compute draw transforms dynamically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build error Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/property_tree.h » ('j') | cc/trees/property_tree.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/trees/property_tree.h » ('j') | cc/trees/property_tree.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698