summaryrefslogtreecommitdiffstats
path: root/ui/base/win
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 03:35:02 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-13 03:35:02 +0000
commit00d3a7620f415e424ceace688bb3371d18296835 (patch)
treea17cf1e6dc8faef24b8267c293df12effe9520b8 /ui/base/win
parentdbd338c407ffa968e72857a5956aac8cabf0db72 (diff)
downloadchromium_src-00d3a7620f415e424ceace688bb3371d18296835.zip
chromium_src-00d3a7620f415e424ceace688bb3371d18296835.tar.gz
chromium_src-00d3a7620f415e424ceace688bb3371d18296835.tar.bz2
Send the device scale factor from Windows 8 ASH during initialization via the MetroViewerHostMsg_SetTargetSurface IPC message.
cpu, please review everything. sky, please review the ash/chrome/ui portions. I added a dependency on gfx in the metro_driver project for a subsequent change to send the correct device scale factor on Windows 8 as the metro API does not appear to work correctly causing text, etc to appear very small on high dpi monitors with scales above 125%. BUG=371219 R=cpu,sky Review URL: https://codereview.chromium.org/271543009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/base/win')
-rw-r--r--ui/base/win/dpi_setup.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/ui/base/win/dpi_setup.cc b/ui/base/win/dpi_setup.cc
index 39bf185..423b788 100644
--- a/ui/base/win/dpi_setup.cc
+++ b/ui/base/win/dpi_setup.cc
@@ -13,15 +13,7 @@ namespace ui {
namespace win {
void InitDeviceScaleFactor() {
- float scale = 1.0;
- if (CommandLine::ForCurrentProcess()->HasSwitch("silent-launch")) {
- if (gfx::IsHighDPIEnabled())
- scale = gfx::GetModernUIScale();
- }
- else {
- scale = gfx::GetDPIScale();
- }
- gfx::InitDeviceScaleFactor(scale);
+ gfx::InitDeviceScaleFactor(gfx::GetDPIScale());
}
} // namespace win