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

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

Issue 2356913002: Pass device scale factor from display to ws. (Closed)
Patch Set: Fix more tests. Created 4 years, 3 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/viewport_metrics.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/window_tree_host_factory.cc
diff --git a/services/ui/ws/window_tree_host_factory.cc b/services/ui/ws/window_tree_host_factory.cc
index e24fd082344eb3b1ecd64436b10b8edd3c3c86e0..b1b96168279f48549dfa344df3d52c8e4362636d 100644
--- a/services/ui/ws/window_tree_host_factory.cc
+++ b/services/ui/ws/window_tree_host_factory.cc
@@ -15,6 +15,10 @@ namespace ws {
WindowTreeHostFactory::WindowTreeHostFactory(WindowServer* window_server,
const UserId& user_id)
: window_server_(window_server), user_id_(user_id) {
+ platform_display_init_params_.metrics.bounds.set_width(1024);
+ platform_display_init_params_.metrics.bounds.set_height(768);
+ platform_display_init_params_.metrics.pixel_size.SetSize(1024, 768);
+ platform_display_init_params_.metrics.device_scale_factor = 1.0f;
platform_display_init_params_.surfaces_state =
window_server_->GetSurfacesState();
}
« no previous file with comments | « services/ui/ws/viewport_metrics.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698