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

Side by Side Diff: cc/test/layer_tree_host_common_test.cc

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format the comments Created 4 years, 8 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/proto/property_tree.proto ('k') | cc/trees/draw_property_utils.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test/layer_tree_host_common_test.h" 5 #include "cc/test/layer_tree_host_common_test.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/layers/layer.h" 9 #include "cc/layers/layer.h"
10 #include "cc/layers/layer_impl.h" 10 #include "cc/layers/layer_impl.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 update_layer_list_.clear(); 121 update_layer_list_.clear();
122 PropertyTreeBuilder::BuildPropertyTrees( 122 PropertyTreeBuilder::BuildPropertyTrees(
123 root_layer, page_scale_layer, inner_viewport_scroll_layer, 123 root_layer, page_scale_layer, inner_viewport_scroll_layer,
124 outer_viewport_scroll_layer, overscroll_elasticity_layer, 124 outer_viewport_scroll_layer, overscroll_elasticity_layer,
125 elastic_overscroll, page_scale_factor, device_scale_factor, 125 elastic_overscroll, page_scale_factor, device_scale_factor,
126 gfx::Rect(device_viewport_size), identity_transform, property_trees); 126 gfx::Rect(device_viewport_size), identity_transform, property_trees);
127 draw_property_utils::UpdateRenderSurfaces(root_layer, property_trees); 127 draw_property_utils::UpdateRenderSurfaces(root_layer, property_trees);
128 draw_property_utils::UpdatePropertyTrees(property_trees, 128 draw_property_utils::UpdatePropertyTrees(property_trees,
129 can_render_to_separate_surface); 129 can_render_to_separate_surface);
130 draw_property_utils::FindLayersThatNeedUpdates( 130 draw_property_utils::FindLayersThatNeedUpdates(
131 root_layer, property_trees->transform_tree, property_trees->effect_tree, 131 root_layer->layer_tree_host(), property_trees->transform_tree,
132 &update_layer_list_); 132 property_trees->effect_tree, &update_layer_list_);
133 draw_property_utils::ComputeVisibleRectsForTesting( 133 draw_property_utils::ComputeVisibleRectsForTesting(
134 property_trees, can_render_to_separate_surface, &update_layer_list_); 134 property_trees, can_render_to_separate_surface, &update_layer_list_);
135 } 135 }
136 136
137 void LayerTreeHostCommonTestBase:: 137 void LayerTreeHostCommonTestBase::
138 ExecuteCalculateDrawPropertiesWithPropertyTrees(LayerImpl* root_layer) { 138 ExecuteCalculateDrawPropertiesWithPropertyTrees(LayerImpl* root_layer) {
139 DCHECK(root_layer->layer_tree_impl()); 139 DCHECK(root_layer->layer_tree_impl());
140 LayerTreeHostCommon::PreCalculateMetaInformationForTesting(root_layer); 140 LayerTreeHostCommon::PreCalculateMetaInformationForTesting(root_layer);
141 141
142 gfx::Transform identity_transform; 142 gfx::Transform identity_transform;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 LayerTreeHostCommonTest::LayerTreeHostCommonTest() 238 LayerTreeHostCommonTest::LayerTreeHostCommonTest()
239 : LayerTreeHostCommonTestBase(LayerTreeSettings()) {} 239 : LayerTreeHostCommonTestBase(LayerTreeSettings()) {}
240 240
241 LayerTreeHostCommonTest::LayerTreeHostCommonTest( 241 LayerTreeHostCommonTest::LayerTreeHostCommonTest(
242 const LayerTreeSettings& settings) 242 const LayerTreeSettings& settings)
243 : LayerTreeHostCommonTestBase(settings) { 243 : LayerTreeHostCommonTestBase(settings) {
244 } 244 }
245 245
246 } // namespace cc 246 } // namespace cc
OLDNEW
« no previous file with comments | « cc/proto/property_tree.proto ('k') | cc/trees/draw_property_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698