| Index: ui/display/win/dpi.cc
|
| diff --git a/ui/display/win/dpi.cc b/ui/display/win/dpi.cc
|
| index 81a96a1b0dd6e594fcd1ed2957ea66329710c7aa..45e0aad18e45aa6e529df7f77fe3e39d4e028767 100644
|
| --- a/ui/display/win/dpi.cc
|
| +++ b/ui/display/win/dpi.cc
|
| @@ -35,12 +35,6 @@ gfx::Size GetDPI() {
|
| return gfx::Size(dpi_x, dpi_y);
|
| }
|
|
|
| -float GetUnforcedDeviceScaleFactor() {
|
| - return g_device_scale_factor
|
| - ? g_device_scale_factor
|
| - : GetScalingFactorFromDPI(GetDPI().width());
|
| -}
|
| -
|
| } // namespace
|
|
|
| void SetDefaultDeviceScaleFactor(float scale) {
|
| @@ -54,6 +48,11 @@ float GetDPIScale() {
|
| return GetUnforcedDeviceScaleFactor();
|
| }
|
|
|
| +float GetUnforcedDeviceScaleFactor() {
|
| + return g_device_scale_factor ? g_device_scale_factor
|
| + : GetScalingFactorFromDPI(GetDPI().width());
|
| +}
|
| +
|
| int GetDPIFromScalingFactor(float device_scaling_factor) {
|
| return kDefaultDPI * device_scaling_factor;
|
| }
|
|
|