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

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

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on another LTH refactor CL. Created 4 years, 4 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 | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 PropertyTreeBuilder::BuildPropertyTrees( 647 PropertyTreeBuilder::BuildPropertyTrees(
648 inputs->root_layer, inputs->page_scale_layer, 648 inputs->root_layer, inputs->page_scale_layer,
649 inputs->inner_viewport_scroll_layer, inputs->outer_viewport_scroll_layer, 649 inputs->inner_viewport_scroll_layer, inputs->outer_viewport_scroll_layer,
650 overscroll_elasticity_layer, elastic_overscroll, 650 overscroll_elasticity_layer, elastic_overscroll,
651 inputs->page_scale_factor, inputs->device_scale_factor, 651 inputs->page_scale_factor, inputs->device_scale_factor,
652 gfx::Rect(inputs->device_viewport_size), inputs->device_transform, 652 gfx::Rect(inputs->device_viewport_size), inputs->device_transform,
653 property_trees); 653 property_trees);
654 draw_property_utils::UpdatePropertyTrees(property_trees, 654 draw_property_utils::UpdatePropertyTrees(property_trees,
655 can_render_to_separate_surface); 655 can_render_to_separate_surface);
656 draw_property_utils::FindLayersThatNeedUpdates( 656 draw_property_utils::FindLayersThatNeedUpdates(
657 inputs->root_layer->layer_tree_host(), property_trees->transform_tree, 657 inputs->root_layer->GetLayerTree(), property_trees->transform_tree,
658 property_trees->effect_tree, &update_layer_list); 658 property_trees->effect_tree, &update_layer_list);
659 } 659 }
660 660
661 void LayerTreeHostCommon::CalculateDrawProperties( 661 void LayerTreeHostCommon::CalculateDrawProperties(
662 CalcDrawPropsImplInputs* inputs) { 662 CalcDrawPropsImplInputs* inputs) {
663 CalculateDrawPropertiesInternal(inputs, DONT_BUILD_PROPERTY_TREES); 663 CalculateDrawPropertiesInternal(inputs, DONT_BUILD_PROPERTY_TREES);
664 664
665 if (CdpPerfTracingEnabled()) { 665 if (CdpPerfTracingEnabled()) {
666 LayerTreeImpl* layer_tree_impl = inputs->root_layer->layer_tree_impl(); 666 LayerTreeImpl* layer_tree_impl = inputs->root_layer->layer_tree_impl();
667 if (layer_tree_impl->IsPendingTree() && 667 if (layer_tree_impl->IsPendingTree() &&
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 716
717 PropertyTrees* GetPropertyTrees(Layer* layer) { 717 PropertyTrees* GetPropertyTrees(Layer* layer) {
718 return layer->GetLayerTree()->property_trees(); 718 return layer->GetLayerTree()->property_trees();
719 } 719 }
720 720
721 PropertyTrees* GetPropertyTrees(LayerImpl* layer) { 721 PropertyTrees* GetPropertyTrees(LayerImpl* layer) {
722 return layer->layer_tree_impl()->property_trees(); 722 return layer->layer_tree_impl()->property_trees();
723 } 723 }
724 724
725 } // namespace cc 725 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common.h ('k') | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698