Font::drawText and other methods have a device_scale_factor argument, which is sent from GraphicsContext for example. GraphicsContext's device_scale_factor is set for example from:
frame_painter.cc's:
float device_scale_factor = blink::DeviceScaleFactorDeprecated(
root_layer->GetLayoutObject().GetFrame());
context.SetDeviceScaleFactor(device_scale_factor);
But even when we run the scalefactor200 virtual test suite, this device_scale_factor is 1 and not used anymore, probably due to using zoom for hidpi.
Can we remove these arguments, or replace them with the physical DSF of the the display again?
Background: I am trying to retrieve font rasterization settings from a new utility process that does not know about any browser command line arguments or more context and I need to pass a useful value here, since we decide whether we want subpixel positioning and depending on that, disable hinting, based on the DSF.
Assigning to fmalita@ for comment, thanks.
Comment 1 by drott@chromium.org
, May 22 2018Owner: ----
Status: Available (was: Assigned)