Chromium Code Reviews| Index: ui/gfx/win/dpi.cc |
| diff --git a/ui/gfx/win/dpi.cc b/ui/gfx/win/dpi.cc |
| index 6ca65d11e73f3c7ae186806928af43b6d67ce9e9..061f5d8113257503b861b0911f0ec5425313c27c 100644 |
| --- a/ui/gfx/win/dpi.cc |
| +++ b/ui/gfx/win/dpi.cc |
| @@ -246,5 +246,9 @@ double GetUndocumentedDPITouchScale() { |
| return scale; |
| } |
| +bool IsDeviceScaleFactorSet() { |
| + return g_device_scale_factor != 0.0f; |
| +} |
| + |
| } // namespace win |
| } // namespace gfx |