Index: services/ui/ws/frame_generator.h |
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h |
index 4db8881c1382f136fc13046227a42988f0c96725..d3cc1d8e0107f24004071a2109bd862af8564b1f 100644 |
--- a/services/ui/ws/frame_generator.h |
+++ b/services/ui/ws/frame_generator.h |
@@ -42,7 +42,7 @@ class FrameGeneratorTest; |
class FrameGeneratorDelegate; |
class ServerWindow; |
-class ServerWindowSurface; |
+class ServerWindowCompositorFrameSink; |
// Responsible for redrawing the display in response to the redraw requests by |
// submitting CompositorFrames to the owned CompositorFrameSink. |
@@ -86,15 +86,16 @@ class FrameGenerator : public ServerWindowObserver { |
bool* may_contain_video); |
// Adds a reference to the current cc::Surface of the provided |
- // |window_surface|. If an existing reference is held with a different |
- // LocalFrameId then release that reference first. This is called on each |
- // ServerWindowSurface as FrameGenerator walks the window tree to generate a |
- /// CompositorFrame. This is done to make sure that the window surfaces are |
- // retained for the entirety of the time between submission of the top-level |
- // frame to drawing the frame to screen. |
+ // |window_compositor_frame_sink|. If an existing reference is held with a |
+ // different LocalFrameId then release that reference first. This is called on |
+ // each ServerWindowCompositorFrameSink as FrameGenerator walks the window |
+ // tree to generate a CompositorFrame. This is done to make sure that the |
+ // window surfaces are retained for the entirety of the time between |
+ // submission of the top-level frame to drawing the frame to screen. |
// TODO(fsamuel, kylechar): This will go away once we get surface lifetime |
// management. |
- void AddOrUpdateSurfaceReference(ServerWindowSurface* window_surface); |
+ void AddOrUpdateSurfaceReference( |
+ ServerWindowCompositorFrameSink* window_compositor_frame_sink); |
// Releases any retained references for the provided FrameSink. |
// TODO(fsamuel, kylechar): This will go away once we get surface lifetime |