| 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())
|
|
|