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

Unified Diff: services/ui/ws/frame_generator.h

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: Rebased Created 4 years, 2 months 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/event_dispatcher_unittest.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « services/ui/ws/event_dispatcher_unittest.cc ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698