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

Unified Diff: services/ui/ws/test_utils.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/platform_display_init_params.cc ('k') | services/ui/ws/viewport_metrics.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/test_utils.cc
diff --git a/services/ui/ws/test_utils.cc b/services/ui/ws/test_utils.cc
index 114f2c51679aa52eed9b84eaca5cbe4b9512e94d..b361221494ac004be9975a254e54f405b3674289 100644
--- a/services/ui/ws/test_utils.cc
+++ b/services/ui/ws/test_utils.cc
@@ -41,10 +41,7 @@ class TestPlatformDisplay : public PlatformDisplay {
// PlatformDisplay:
void Init(PlatformDisplayDelegate* delegate) override {
- // It is necessary to tell the delegate about the ViewportMetrics to make
- // sure that the DisplayBinding is correctly initialized (and a root-window
- // is created).
- delegate->OnViewportMetricsChanged(ViewportMetrics(), display_metrics_);
+ delegate->CreateRootWindow(display_metrics_.bounds.size());
}
int64_t GetId() const override { return id_; }
void SchedulePaint(const ServerWindow* window,
« no previous file with comments | « services/ui/ws/platform_display_init_params.cc ('k') | services/ui/ws/viewport_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698