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

Side by Side Diff: services/ui/surfaces/gpu_compositor_frame_sink.h

Issue 2565783002: Moves ownership of the cc::Display's BeginFrameSource out of Display. (Closed)
Patch Set: rebase. Created 4 years 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 SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 // Server side representation of a WindowSurface. 26 // Server side representation of a WindowSurface.
27 class GpuCompositorFrameSink 27 class GpuCompositorFrameSink
28 : public cc::CompositorFrameSinkSupportClient, 28 : public cc::CompositorFrameSinkSupportClient,
29 public cc::mojom::MojoCompositorFrameSink, 29 public cc::mojom::MojoCompositorFrameSink,
30 public cc::mojom::MojoCompositorFrameSinkPrivate { 30 public cc::mojom::MojoCompositorFrameSinkPrivate {
31 public: 31 public:
32 GpuCompositorFrameSink( 32 GpuCompositorFrameSink(
33 DisplayCompositor* display_compositor, 33 DisplayCompositor* display_compositor,
34 const cc::FrameSinkId& frame_sink_id, 34 const cc::FrameSinkId& frame_sink_id,
35 std::unique_ptr<cc::Display> display, 35 std::unique_ptr<cc::Display> display,
36 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
36 cc::mojom::MojoCompositorFrameSinkRequest request, 37 cc::mojom::MojoCompositorFrameSinkRequest request,
37 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 38 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
38 cc::mojom::MojoCompositorFrameSinkClientPtr client); 39 cc::mojom::MojoCompositorFrameSinkClientPtr client);
39 40
40 ~GpuCompositorFrameSink() override; 41 ~GpuCompositorFrameSink() override;
41 42
42 // cc::mojom::MojoCompositorFrameSink: 43 // cc::mojom::MojoCompositorFrameSink:
43 void EvictFrame() override; 44 void EvictFrame() override;
44 void SetNeedsBeginFrame(bool needs_begin_frame) override; 45 void SetNeedsBeginFrame(bool needs_begin_frame) override;
45 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id, 46 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 78 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
78 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; 79 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_;
79 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_; 80 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 82 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
82 }; 83 };
83 84
84 } // namespace ui 85 } // namespace ui
85 86
86 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ 87 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_compositor.cc ('k') | services/ui/surfaces/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698