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

Unified Diff: components/exo/wayland/server.cc

Issue 2779823002: exo: Send DSF of internal display to ARC (Closed)
Patch Set: Document is_internal Created 3 years, 7 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 | « no previous file | third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index e541591d3e903afb76ed5383054e4e9e57f4b1b2..36441f2ee63937de0cbfe2cf22f519aff20e5d9f 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -2185,6 +2185,10 @@ class WaylandRemoteShell : public WMHelper::MaximizeModeObserver,
const gfx::Rect& bounds = display.bounds();
const gfx::Insets& insets = display.GetWorkAreaInsets();
+ double device_scale_factor =
+ WMHelper::GetInstance()->GetDisplayInfo(display.id())
+ .device_scale_factor();
+
zcr_remote_shell_v1_send_workspace(
remote_shell_resource_,
static_cast<uint32_t>(display.id() >> 32),
@@ -2192,7 +2196,8 @@ class WaylandRemoteShell : public WMHelper::MaximizeModeObserver,
bounds.x(), bounds.y(), bounds.width(), bounds.height(),
insets.left(), insets.top(), insets.right(), insets.bottom(),
OutputTransform(display.rotation()),
- wl_fixed_from_double(display.device_scale_factor()));
+ wl_fixed_from_double(device_scale_factor),
+ display.IsInternal());
}
zcr_remote_shell_v1_send_configure(remote_shell_resource_, layout_mode_);
« no previous file with comments | « no previous file | third_party/wayland-protocols/include/protocol/remote-shell-unstable-v1-client-protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698