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

Unified Diff: services/ui/surfaces/gpu_compositor_frame_sink.h

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: Use MakeUnique Created 3 years, 11 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
Index: services/ui/surfaces/gpu_compositor_frame_sink.h
diff --git a/services/ui/surfaces/gpu_compositor_frame_sink.h b/services/ui/surfaces/gpu_compositor_frame_sink.h
index c2a80bc9888444c2665e20ba68220bfa025fcf44..19fa30957043daca58d7fdf5ec4077898dc163ec 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.h
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.h
@@ -80,6 +80,11 @@ class GpuCompositorFrameSink : public cc::CompositorFrameSinkSupportClient,
DisplayCompositor* const display_compositor_;
+ // GpuCompositorFrameSink holds a Display and its BeginFrameSource if it
+ // created with non-null gpu::SurfaceHandle. In the window server, the display
+ // root window's CompositorFrameSink will have a valid gpu::SurfaceHandle.
+ std::unique_ptr<cc::Display> display_;
+ std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_;
cc::CompositorFrameSinkSupport support_;
// Track the surface references for the surface corresponding to this

Powered by Google App Engine
This is Rietveld 408576698