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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 1823833002: cc : Update render surfaces using LayerListIterator instead of treewalk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ASAN unittest crashes Created 4 years, 9 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/test/layer_test_common.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('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 d1a7dc25b643183735a62b201ebc499b174bd117..c923e507b7f56333ab71c37326f3d870d81b15fe 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -166,8 +166,12 @@ void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
LayerImpl* page_scale_layer,
bool can_use_lcd_text,
bool layers_always_allowed_lcd_text) {
- host_impl()->active_tree()->SetDeviceScaleFactor(device_scale_factor);
- host_impl()->active_tree()->SetPageScaleOnActiveTree(page_scale_factor);
+ root_layer->layer_tree_impl()->SetDeviceScaleFactor(device_scale_factor);
+ if (page_scale_layer)
+ root_layer->layer_tree_impl()->SetViewportLayersFromIds(
+ Layer::INVALID_ID, page_scale_layer->id(), Layer::INVALID_ID,
+ Layer::INVALID_ID);
+ root_layer->layer_tree_impl()->SetPageScaleOnActiveTree(page_scale_factor);
gfx::Transform identity_matrix;
gfx::Size device_viewport_size =
« no previous file with comments | « cc/test/layer_test_common.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698