cc: Refactor lcd text flag to live on the layer instead of raster source
This patch changes where we keep the lcd state flag to be on the layer
instead of the raster source. This cleans up a bunch of code that was
there since the days of tile sharing. Since tiles are no longer shared,
we can afford to make the code cleaner and eliminate a bunch of lcd text
references throughout.
This also allows us to remove the pseudo copy constructor from the
raster source, meaning that we can now store truly uncopyable types on
it.
[email protected], [email protected]
Bug: 741775
Change-Id: I376e34f547de03cc5914686eaac60825ccbf2aeb
Reviewed-on: https://chromium-review.googlesource.com/568660
Reviewed-by: Khushal <[email protected]>
Commit-Queue: Vladimir Levin <[email protected]>
Cr-Commit-Position: refs/heads/master@{#486223}
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index d9faf0c..80a0c01 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -3065,8 +3065,7 @@
host_impl.SetVisible(true);
host_impl.InitializeRenderer(layer_tree_frame_sink.get());
host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting();
- bool update_lcd_text = false;
- host_impl.active_tree()->UpdateDrawProperties(update_lcd_text);
+ host_impl.active_tree()->UpdateDrawProperties();
EXPECT_TRANSFORMATION_MATRIX_EQ(
GetRenderSurface(surface_ptr)->draw_transform(), translate);
@@ -3112,8 +3111,7 @@
host_impl.SetVisible(true);
host_impl.InitializeRenderer(layer_tree_frame_sink.get());
host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting();
- bool update_lcd_text = false;
- host_impl.active_tree()->UpdateDrawProperties(update_lcd_text);
+ host_impl.active_tree()->UpdateDrawProperties();
EXPECT_NE(child_ptr->ScreenSpaceTransform(), fractional_translate);
fractional_translate.RoundTranslationComponents();
@@ -3175,8 +3173,7 @@
host_impl.SetVisible(true);
host_impl.InitializeRenderer(layer_tree_frame_sink.get());
host_impl.active_tree()->BuildLayerListAndPropertyTreesForTesting();
- bool update_lcd_text = false;
- host_impl.active_tree()->UpdateDrawProperties(update_lcd_text);
+ host_impl.active_tree()->UpdateDrawProperties();
LayerImpl* grand_child_ptr = host_impl.active_tree()
->root_layer_for_testing()