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

Unified Diff: cc/trees/layer_tree_host_common.cc

Issue 1132253003: Observe LCD text restrictions during layer animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contents_opaque + animation unit test Created 5 years, 7 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 | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common.cc
diff --git a/cc/trees/layer_tree_host_common.cc b/cc/trees/layer_tree_host_common.cc
index 49bc13d95da3cfd13dbc086f9af9d35e03ac07fd..09882856e55e5dc2727ee9fe6809a1b39ae62094 100644
--- a/cc/trees/layer_tree_host_common.cc
+++ b/cc/trees/layer_tree_host_common.cc
@@ -1897,10 +1897,6 @@ static void CalculateDrawPropertiesInternal(
layer_draw_properties.screen_space_transform.PreconcatTransform
(layer_draw_properties.target_space_transform);
- // Adjusting text AA method during animation may cause repaints, which in-turn
- // causes jank.
- bool adjust_text_aa =
- !animating_opacity_to_screen && !animating_transform_to_screen;
bool layer_can_use_lcd_text = true;
bool subtree_can_use_lcd_text = true;
if (!globals.layers_always_allowed_lcd_text) {
@@ -2145,8 +2141,7 @@ static void CalculateDrawPropertiesInternal(
layer_draw_properties.render_target = layer->parent()->render_target();
}
- if (adjust_text_aa)
- layer_draw_properties.can_use_lcd_text = layer_can_use_lcd_text;
+ layer_draw_properties.can_use_lcd_text = layer_can_use_lcd_text;
gfx::Size content_size_affected_by_delta(layer->content_bounds());
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698