Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: content/renderer/renderer_main_platform_delegate_win.cc

Issue 1889423002: Move Windows DPI Code from ui/gfx to ui/display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_main_platform_delegate_win.cc
diff --git a/content/renderer/renderer_main_platform_delegate_win.cc b/content/renderer/renderer_main_platform_delegate_win.cc
index 0277d3ed7b511afed23333b2dee97f396b339120..a698af44040529c65f4e1c8a82af9b3d4018d447 100644
--- a/content/renderer/renderer_main_platform_delegate_win.cc
+++ b/content/renderer/renderer_main_platform_delegate_win.cc
@@ -25,8 +25,8 @@
#include "third_party/WebKit/public/web/win/WebFontRendering.h"
#include "third_party/icu/source/i18n/unicode/timezone.h"
#include "third_party/skia/include/ports/SkTypeface_win.h"
+#include "ui/display/win/dpi.h"
#include "ui/gfx/win/direct_write.h"
-#include "ui/gfx/win/dpi.h"
namespace content {
namespace {
@@ -75,7 +75,8 @@ void RendererMainPlatformDelegate::PlatformInitialize() {
}
}
blink::WebFontRendering::setUseDirectWrite(use_direct_write);
- blink::WebFontRendering::setDeviceScaleFactor(gfx::GetDPIScale());
+ // TODO(robliao): This should use WebScreenInfo. See http://crbug.com/604555.
+ blink::WebFontRendering::setDeviceScaleFactor(display::win::GetDPIScale());
}
void RendererMainPlatformDelegate::PlatformUninitialize() {
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698