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

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

Issue 2445873003: Pass root ServerWindow id to FrameGenerator. (Closed)
Patch Set: Change back to const ref. 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
Index: services/ui/ws/platform_display.cc
diff --git a/services/ui/ws/platform_display.cc b/services/ui/ws/platform_display.cc
index 56da720e51db63daecd262ccbc997ed4de70281b..8f109f7a796145e0c1686b663be92ceab5854063 100644
--- a/services/ui/ws/platform_display.cc
+++ b/services/ui/ws/platform_display.cc
@@ -58,8 +58,9 @@ DefaultPlatformDisplay::DefaultPlatformDisplay(
#if !defined(OS_ANDROID)
cursor_loader_(ui::CursorLoader::Create()),
#endif
- frame_generator_(
- new FrameGenerator(this, init_params.display_compositor)),
+ frame_generator_(new FrameGenerator(this,
+ init_params.root_window_id,
+ init_params.display_compositor)),
metrics_(init_params.metrics) {
}
@@ -83,7 +84,6 @@ void DefaultPlatformDisplay::Init(PlatformDisplayDelegate* delegate) {
#else
NOTREACHED() << "Unsupported platform";
#endif
- delegate_->CreateRootWindow(metrics_.bounds.size());
platform_window_->SetBounds(bounds);
platform_window_->Show();

Powered by Google App Engine
This is Rietveld 408576698