| 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..46fe9bff36a9e04eaeeb652fa377c24dc08f7024 100644
|
| --- a/services/ui/ws/window_server.cc
|
| +++ b/services/ui/ws/window_server.cc
|
| @@ -771,6 +771,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()
|
| + ->AddSurfaceReference(surface_id, window);
|
| +
|
| // This is only used for testing to observe that a window has a
|
| // CompositorFrame.
|
| if (!window_paint_callback_.is_null())
|
|
|