Index: content/browser/renderer_host/render_process_host_impl.cc |
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc |
index 98e45d6a13a3609dcd123f443c7b52a23bcfe362..a9fa2ed0a34b4c7dc1e8ebc22c9b37f935fadb65 100644 |
--- a/content/browser/renderer_host/render_process_host_impl.cc |
+++ b/content/browser/renderer_host/render_process_host_impl.cc |
@@ -166,8 +166,10 @@ |
#if defined(OS_WIN) |
#include "base/win/scoped_com_initializer.h" |
+#include "base/strings/string_number_conversions.h" |
#include "content/common/font_cache_dispatcher_win.h" |
#include "content/common/sandbox_win.h" |
+#include "ui/gfx/win/dpi.h" |
#endif |
#if defined(ENABLE_WEBRTC) |
@@ -1037,6 +1039,11 @@ void RenderProcessHostImpl::AppendRendererCommandLine( |
if (content::IsPinchToZoomEnabled()) |
command_line->AppendSwitch(switches::kEnablePinch); |
+#if defined(OS_WIN) |
+ command_line->AppendSwitchASCII(switches::kUseDeviceScaleFactor, |
+ base::DoubleToString(gfx::GetDPIScale())); |
+#endif |
+ |
AppendCompositorCommandLineFlags(command_line); |
} |