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

Unified Diff: services/ui/ws/display.cc

Issue 2458583003: Use physical pixels for display root ServerWindow. (Closed)
Patch Set: Created 4 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 | « services/ui/ws/display.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/display.cc
diff --git a/services/ui/ws/display.cc b/services/ui/ws/display.cc
index 175529ca5ff8bae80e57f2a5f5c47a8de629665b..340dfba1483e8596fea74bf9a638e73229f841e5 100644
--- a/services/ui/ws/display.cc
+++ b/services/ui/ws/display.cc
@@ -35,7 +35,7 @@ namespace ws {
Display::Display(WindowServer* window_server,
const PlatformDisplayInitParams& platform_display_init_params)
: window_server_(window_server), last_cursor_(mojom::Cursor::CURSOR_NULL) {
- CreateRootWindow(platform_display_init_params.metrics.bounds.size());
+ CreateRootWindow(platform_display_init_params.metrics.pixel_size);
// Pass the display root ServerWindow to PlatformDisplay.
PlatformDisplayInitParams param_copy = platform_display_init_params;
« no previous file with comments | « services/ui/ws/display.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698