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

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

Issue 2498073003: Fix GPU service and display initialization race. (Closed)
Patch Set: Make function abstract. Created 4 years, 1 month 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/test_utils.cc ('k') | services/ui/ws/window_server_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 6fc2028621bedb8e362d42941e131bc109e7091a..3ab93974429d3dd07a6b98a31f7f031f92c3a086 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -750,6 +750,9 @@ void WindowServer::OnGpuChannelEstablished(
const std::set<Display*>& displays = display_manager()->displays();
for (auto* display : displays)
display->platform_display()->OnGpuChannelEstablished(gpu_channel_);
+ // TODO(kylechar): When gpu channel is removed, this can instead happen
+ // earlier, after GpuServiceProxy::OnInitialized().
+ delegate_->StartDisplayInit();
}
void WindowServer::OnSurfaceCreated(const cc::SurfaceId& surface_id,
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | services/ui/ws/window_server_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698