summaryrefslogtreecommitdiffstats
path: root/cc/trees/layer_tree_host_common.h
diff options
context:
space:
mode:
authordanakj <danakj@chromium.org>2014-11-17 13:47:49 -0800
committerCommit bot <commit-bot@chromium.org>2014-11-17 21:48:17 +0000
commitad672f645e82ca677978b097a170c908c614d184 (patch)
tree567bb95eb11adaf7729cef22b691087c7c1bc374 /cc/trees/layer_tree_host_common.h
parent9f3e33daaac0f6c0835dd69ef57c89cb89e706f8 (diff)
downloadchromium_src-ad672f645e82ca677978b097a170c908c614d184.zip
chromium_src-ad672f645e82ca677978b097a170c908c614d184.tar.gz
chromium_src-ad672f645e82ca677978b097a170c908c614d184.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 Review URL: https://codereview.chromium.org/684543006 Cr-Commit-Position: refs/heads/master@{#304486}
Diffstat (limited to 'cc/trees/layer_tree_host_common.h')
-rw-r--r--cc/trees/layer_tree_host_common.h5
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,