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

Unified Diff: services/ui/surfaces/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: 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 bfe1e9ad240b189864af28f7d869a7b0f9488514..17f034df45d7591a48f2a122b6f1d1a969cc1e65 100644
--- a/services/ui/surfaces/gpu_compositor_frame_sink.h
+++ b/services/ui/surfaces/gpu_compositor_frame_sink.h
@@ -69,6 +69,12 @@ class 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_;
+ std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_;
+
// 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