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

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

Issue 2779823002: exo: Send DSF of internal display to ARC (Closed)
Patch Set: Send is_internal flag instead 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
Index: components/exo/wayland/server.cc
diff --git a/components/exo/wayland/server.cc b/components/exo/wayland/server.cc
index 9aa55fc1b3f4e2b72fa61f8dd5d9dbbe2971de71..ec85b8d3bea2ead48d536c3b9d32a11aeaf98b08 100644
--- a/components/exo/wayland/server.cc
+++ b/components/exo/wayland/server.cc
@@ -2178,6 +2178,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),
@@ -2185,7 +2189,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_);

Powered by Google App Engine
This is Rietveld 408576698