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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 1855013002: cc : Stop calculating visible rects on main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/trees/draw_property_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_host_common_test.cc
diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc
index 0e277a7ce3a60bd7eed79577c1bcb1146dd483fb..92db2d32829df754e695786dfca386f345061fc6 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -11,6 +11,7 @@
#include "cc/test/fake_layer_tree_host.h"
#include "cc/trees/draw_property_utils.h"
#include "cc/trees/layer_tree_host_common.h"
+#include "cc/trees/property_tree_builder.h"
namespace cc {
LayerTreeHostCommonTestBase::LayerTreeHostCommonTestBase(
@@ -115,13 +116,22 @@ void LayerTreeHostCommonTestBase::
gfx::Size device_viewport_size =
gfx::Size(root_layer->bounds().width() * device_scale_factor,
root_layer->bounds().height() * device_scale_factor);
- draw_property_utils::BuildPropertyTreesAndComputeVisibleRects(
+ PropertyTrees* property_trees =
+ root_layer->layer_tree_host()->property_trees();
+ update_layer_list_.clear();
+ PropertyTreeBuilder::BuildPropertyTrees(
root_layer, page_scale_layer, inner_viewport_scroll_layer,
outer_viewport_scroll_layer, overscroll_elasticity_layer,
elastic_overscroll, page_scale_factor, device_scale_factor,
- gfx::Rect(device_viewport_size), identity_transform,
- can_render_to_separate_surface,
- root_layer->layer_tree_host()->property_trees(), &update_layer_list_);
+ gfx::Rect(device_viewport_size), identity_transform, property_trees);
+ draw_property_utils::UpdateRenderSurfaces(root_layer, property_trees);
+ draw_property_utils::UpdatePropertyTrees(property_trees,
+ can_render_to_separate_surface);
+ draw_property_utils::FindLayersThatNeedUpdates(
+ root_layer, property_trees->transform_tree, property_trees->effect_tree,
+ &update_layer_list_);
+ draw_property_utils::ComputeVisibleRectsForTesting(
+ property_trees, can_render_to_separate_surface, &update_layer_list_);
}
void LayerTreeHostCommonTestBase::
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark.cc ('k') | cc/trees/draw_property_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698