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

Unified Diff: ui/base/layout.cc

Issue 674763002: remove ui::gfx::GetDeviceScaleFactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dpi-cleanup-3
Patch Set: rebase-4 Created 6 years, 2 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 | « chrome/browser/ui/views/frame/minimize_button_metrics_win.cc ('k') | ui/gfx/canvas_paint_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout.cc
diff --git a/ui/base/layout.cc b/ui/base/layout.cc
index 59b913becdc73a41e24ec74184dc775af644afca..f6362ac94830b8dc39735e64f09573ef6bfbfa4a 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -85,7 +85,7 @@ ScaleFactor GetSupportedScaleFactor(float scale) {
float GetImageScale(ScaleFactor scale_factor) {
#if defined(OS_WIN)
if (gfx::IsHighDPIEnabled())
- return gfx::win::GetDeviceScaleFactor();
+ return gfx::GetDPIScale();
#endif
return GetScaleForScaleFactor(scale_factor);
}
« no previous file with comments | « chrome/browser/ui/views/frame/minimize_button_metrics_win.cc ('k') | ui/gfx/canvas_paint_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698