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

Unified Diff: content/ppapi_plugin/ppapi_plugin_main.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/content_tests.gypi ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/ppapi_plugin/ppapi_plugin_main.cc
diff --git a/content/ppapi_plugin/ppapi_plugin_main.cc b/content/ppapi_plugin/ppapi_plugin_main.cc
index 46db7bed1b9e357a2afc33523a63d5eab7cfe8e9..76844a1a774381915c8b57f219f18d1e8e907893 100644
--- a/content/ppapi_plugin/ppapi_plugin_main.cc
+++ b/content/ppapi_plugin/ppapi_plugin_main.cc
@@ -32,8 +32,8 @@
#include "sandbox/win/src/sandbox.h"
#include "third_party/WebKit/public/web/win/WebFontRendering.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"
#endif
#if defined(OS_CHROMEOS)
@@ -156,7 +156,7 @@ int PpapiPluginMain(const MainFunctionParams& parameters) {
}
blink::WebFontRendering::setUseDirectWrite(use_direct_write);
- blink::WebFontRendering::setDeviceScaleFactor(gfx::GetDPIScale());
+ blink::WebFontRendering::setDeviceScaleFactor(display::win::GetDPIScale());
#endif
main_message_loop.Run();
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698