summaryrefslogtreecommitdiffstats
path: root/chrome/app/chrome_exe_main_win.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 21:46:38 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 21:46:38 +0000
commit83d4ccb31ecee09ced4c6d7e7e51011e876d5399 (patch)
treee6913ce6baa10b25d8f079650005d0bcab4f704b /chrome/app/chrome_exe_main_win.cc
parent8a0bd531f07b5d8f5f9b4307ef4b0a75eb5b69ab (diff)
downloadchromium_src-83d4ccb31ecee09ced4c6d7e7e51011e876d5399.zip
chromium_src-83d4ccb31ecee09ced4c6d7e7e51011e876d5399.tar.gz
chromium_src-83d4ccb31ecee09ced4c6d7e7e51011e876d5399.tar.bz2
Initialize high dpi early in the chrome process on Windows by calling the SetProcessDpiAware API in chrome.exe instead of chrome.dll
This API needs to be invoked as early as possible in the process. Not doing this causes the OS to assume that the process needs dpi scaling which leads to bad things. We also need to initialize high dpi in the gpu process as it is involved in win32 operations like painting, etc. BUG=330093 R=cpu@chromium.org TBR=sky Review URL: https://codereview.chromium.org/100923011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242182 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app/chrome_exe_main_win.cc')
-rw-r--r--chrome/app/chrome_exe_main_win.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/app/chrome_exe_main_win.cc b/chrome/app/chrome_exe_main_win.cc
index 2dc2c94..e5f8bbc 100644
--- a/chrome/app/chrome_exe_main_win.cc
+++ b/chrome/app/chrome_exe_main_win.cc
@@ -26,6 +26,7 @@
#include "content/public/app/startup_helper_win.h"
#include "content/public/common/result_codes.h"
#include "sandbox/win/src/sandbox_factory.h"
+#include "ui/gfx/win/dpi.h"
namespace {
@@ -125,6 +126,8 @@ int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE prev, wchar_t*, int) {
// The exit manager is in charge of calling the dtors of singletons.
base::AtExitManager exit_manager;
+ gfx::EnableHighDPISupport();
+
if (AttemptFastNotify(*CommandLine::ForCurrentProcess()))
return 0;