diff options
author | danakj <danakj@chromium.org> | 2014-11-18 08:56:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-18 16:57:07 +0000 |
commit | 3f76acec92ff4dbd8bc46e7add2f8f7a2cbacfb0 (patch) | |
tree | 41935a37da0de066fa750016b2602e69b56ec825 /cc/trees/layer_tree_host_common.h | |
parent | 0bc5a9a4430af86f2c935f51e46961988fe576fd (diff) | |
download | chromium_src-3f76acec92ff4dbd8bc46e7add2f8f7a2cbacfb0.zip chromium_src-3f76acec92ff4dbd8bc46e7add2f8f7a2cbacfb0.tar.gz chromium_src-3f76acec92ff4dbd8bc46e7add2f8f7a2cbacfb0.tar.bz2 |
cc: Toggle LCD text at raster time instead of record time.
Always tell blink that it can use LCD text (in future this can stop
being passed at all). And at raster time:
- If LCD text is allowed initialize SkSurfaceProps with the LegacyHost
parameter which will cause skia to pick an LCD text format matching
current behaviour.
- If LCD is not allowed initialize SkSurfaceProps with an "unknown
pixelformat" causing LCD text to not be used.
This also removes the need for SK_SUPPORT_LEGACY_TEXTRENDERMODE from
resource_provider.cc.
R=enne,reveman
BUG=430617
Committed: https://crrev.com/ad672f645e82ca677978b097a170c908c614d184
Cr-Commit-Position: refs/heads/master@{#304486}
Review URL: https://codereview.chromium.org/684543006
Cr-Commit-Position: refs/heads/master@{#304623}
Diffstat (limited to 'cc/trees/layer_tree_host_common.h')
-rw-r--r-- | cc/trees/layer_tree_host_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/trees/layer_tree_host_common.h b/cc/trees/layer_tree_host_common.h index 089fe29..349b341 100644 --- a/cc/trees/layer_tree_host_common.h +++ b/cc/trees/layer_tree_host_common.h @@ -40,6 +40,7 @@ class CC_EXPORT LayerTreeHostCommon { const LayerType* page_scale_application_layer, int max_texture_size, bool can_use_lcd_text, + bool layers_always_allowed_lcd_text, bool can_render_to_separate_surface, bool can_adjust_raster_scales, RenderSurfaceLayerListType* render_surface_layer_list, @@ -52,6 +53,7 @@ class CC_EXPORT LayerTreeHostCommon { page_scale_application_layer(page_scale_application_layer), max_texture_size(max_texture_size), can_use_lcd_text(can_use_lcd_text), + layers_always_allowed_lcd_text(layers_always_allowed_lcd_text), can_render_to_separate_surface(can_render_to_separate_surface), can_adjust_raster_scales(can_adjust_raster_scales), render_surface_layer_list(render_surface_layer_list), @@ -66,6 +68,7 @@ class CC_EXPORT LayerTreeHostCommon { const LayerType* page_scale_application_layer; int max_texture_size; bool can_use_lcd_text; + bool layers_always_allowed_lcd_text; bool can_render_to_separate_surface; bool can_adjust_raster_scales; RenderSurfaceLayerListType* render_surface_layer_list; @@ -222,6 +225,7 @@ LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType, NULL, std::numeric_limits<int>::max() / 2, false, + false, true, false, render_surface_layer_list, @@ -246,6 +250,7 @@ LayerTreeHostCommon::CalcDrawPropsInputsForTesting<LayerType, NULL, std::numeric_limits<int>::max() / 2, false, + false, true, false, render_surface_layer_list, |