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

Side by Side Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: addressed comments Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 cc::CompositorFrameSinkSupport support_; 64 cc::CompositorFrameSinkSupport support_;
65 cc::SurfaceManager* const surface_manager_; 65 cc::SurfaceManager* const surface_manager_;
66 66
67 private: 67 private:
68 // cc::CompositorFrameSinkSupportClient implementation: 68 // cc::CompositorFrameSinkSupportClient implementation:
69 void DidReceiveCompositorFrameAck() override; 69 void DidReceiveCompositorFrameAck() override;
70 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 70 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
71 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 71 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
72 void WillDrawSurface() override; 72 void WillDrawSurface() override;
73 73
74 // GpuCompositorFrameSink holds a Display and its BeginFrameSource if it
75 // created with non-null gpu::SurfaceHandle. In the window server, the display
76 // root window's CompositorFrameSink will have a valid gpu::SurfaceHandle.
77 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.
78 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.
79
74 // Track the surface references for the surface corresponding to this 80 // Track the surface references for the surface corresponding to this
75 // compositor frame sink. 81 // compositor frame sink.
76 cc::ReferencedSurfaceTracker surface_tracker_; 82 cc::ReferencedSurfaceTracker surface_tracker_;
77 83
78 bool client_connection_lost_ = false; 84 bool client_connection_lost_ = false;
79 bool private_connection_lost_ = false; 85 bool private_connection_lost_ = false;
80 86
81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 87 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 88 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
83 compositor_frame_sink_private_binding_; 89 compositor_frame_sink_private_binding_;
84 90
85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 91 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
86 }; 92 };
87 93
88 } // namespace display_compositor 94 } // namespace display_compositor
89 95
90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 96 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698