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

Unified Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: addressed comments 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: components/display_compositor/gpu_compositor_frame_sink.h
diff --git a/components/display_compositor/gpu_compositor_frame_sink.h b/components/display_compositor/gpu_compositor_frame_sink.h
index 2ccac2927d027732dbea242f5eca835e27e92e72..a984ccd6ed85971738976f0d5bdc7746b067a0be 100644
--- a/components/display_compositor/gpu_compositor_frame_sink.h
+++ b/components/display_compositor/gpu_compositor_frame_sink.h
@@ -71,6 +71,12 @@ class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
void WillDrawSurface() override;
+ // 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_;
Fady Samuel 2017/01/29 15:43:01 Move this to GpuDisplayCompositorFrameSink. The co
Alex Z. 2017/01/30 20:37:49 Done.
+ std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_;
Fady Samuel 2017/01/29 15:43:01 Move this to GpuDisplayCompositorFrameSink.
Alex Z. 2017/01/30 20:37:49 Done.
+
// Track the surface references for the surface corresponding to this
// compositor frame sink.
cc::ReferencedSurfaceTracker surface_tracker_;

Powered by Google App Engine
This is Rietveld 408576698