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

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

Issue 2489003002: Convert mustash use surface references. (Closed)
Patch Set: Rewrite large bits 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
« services/ui/ws/frame_generator.cc ('K') | « services/ui/ws/test_utils.cc ('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_server.cc
diff --git a/services/ui/ws/window_server.cc b/services/ui/ws/window_server.cc
index 3ab93974429d3dd07a6b98a31f7f031f92c3a086..ebd69455e78894410e5b813e74725af54ed239ff 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -774,6 +774,13 @@ void WindowServer::OnSurfaceCreated(const cc::SurfaceId& surface_id,
window->GetOrCreateCompositorFrameSinkManager()->SetLatestSurfaceInfo(
compositor_frame_sink_type, surface_id, frame_size);
+ // FrameGenerator will add an appropriate reference for the new surface.
+ DCHECK(display_manager_->GetDisplayContaining(window));
+ display_manager_->GetDisplayContaining(window)
+ ->platform_display()
+ ->GetFrameGenerator()
+ ->OnSurfaceCreated(surface_id, window);
+
// This is only used for testing to observe that a window has a
// CompositorFrame.
if (!window_paint_callback_.is_null())
« services/ui/ws/frame_generator.cc ('K') | « services/ui/ws/test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698