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

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

Issue 2489003002: Convert mustash use surface references. (Closed)
Patch Set: More fixes for comments. 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') | 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..b589f61554d4d335f741ecd7f77f81022a9082f6 100644
--- a/services/ui/ws/window_server.cc
+++ b/services/ui/ws/window_server.cc
@@ -13,6 +13,7 @@
#include "services/service_manager/public/cpp/connection.h"
#include "services/ui/ws/display.h"
#include "services/ui/ws/display_manager.h"
+#include "services/ui/ws/frame_generator.h"
#include "services/ui/ws/gpu_service_proxy.h"
#include "services/ui/ws/operation.h"
#include "services/ui/ws/server_window.h"
@@ -774,6 +775,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())
« no previous file with comments | « services/ui/ws/test_utils.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698