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}
diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
index e85c5790..607a8ea8 100644
--- a/ui/compositor/compositor.cc
+++ b/ui/compositor/compositor.cc
@@ -90,6 +90,10 @@
CommandLine* command_line = CommandLine::ForCurrentProcess();
cc::LayerTreeSettings settings;
+ // When impl-side painting is enabled, this will ensure PictureLayers always
+ // can have LCD text, to match the previous behaviour with ContentLayers,
+ // where LCD-not-allowed notifications were ignored.
+ settings.layers_always_allowed_lcd_text = true;
settings.refresh_rate =
context_factory_->DoesCreateTestContexts()
? kTestRefreshRate