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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 669213004: remove IsInHighDPIMode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« ui/gfx/screen_win.cc ('K') | « ui/gfx/win/dpi.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index d184ae422b6a8727458ed0ff7ac2c711240b3474..ac57a18aa23df7e8937f23bc081bd4133faa1e58 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -286,7 +286,7 @@ void DesktopWindowTreeHostWin::SetShape(gfx::NativeRegion native_region) {
// See crbug.com/410593.
gfx::NativeRegion shape = native_region;
SkRegion device_region;
- if (gfx::IsInHighDPIMode()) {
+ if (gfx::GetDPIScale() > 1.0) {
shape = &device_region;
const float& scale = gfx::GetDPIScale();
std::vector<SkIRect> rects;
« ui/gfx/screen_win.cc ('K') | « ui/gfx/win/dpi.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698