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

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: 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
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..9d62ce2c79dfa375cae390b463e8dbb8dbf76197 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -167,7 +167,8 @@ void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
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);
+ if (host_impl()->active_tree()->property_trees()->needs_rebuild)
ajuma 2016/03/22 14:41:54 Why does this depend on whether we need to rebuild
jaydasika 2016/03/22 20:48:34 Whoops, it should be the other way around, if we a
+ host_impl()->active_tree()->SetPageScaleOnActiveTree(page_scale_factor);
gfx::Transform identity_matrix;
gfx::Size device_viewport_size =

Powered by Google App Engine
This is Rietveld 408576698