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

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

Issue 2682943004: Revert of DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: 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 17 matching lines...) Expand all
28 // Server side representation of a WindowSurface. 28 // Server side representation of a WindowSurface.
29 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink 29 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink
30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), 30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient),
31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), 31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink),
32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { 32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) {
33 public: 33 public:
34 GpuCompositorFrameSink( 34 GpuCompositorFrameSink(
35 GpuCompositorFrameSinkDelegate* delegate, 35 GpuCompositorFrameSinkDelegate* delegate,
36 cc::SurfaceManager* surface_manager, 36 cc::SurfaceManager* surface_manager,
37 const cc::FrameSinkId& frame_sink_id, 37 const cc::FrameSinkId& frame_sink_id,
38 cc::Display* display, 38 std::unique_ptr<cc::Display> display,
39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
39 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
40 cc::mojom::MojoCompositorFrameSinkClientPtr client); 41 cc::mojom::MojoCompositorFrameSinkClientPtr client);
41 42
42 ~GpuCompositorFrameSink() override; 43 ~GpuCompositorFrameSink() override;
43 44
44 // cc::mojom::MojoCompositorFrameSink: 45 // cc::mojom::MojoCompositorFrameSink:
45 void EvictFrame() override; 46 void EvictFrame() override;
46 void SetNeedsBeginFrame(bool needs_begin_frame) override; 47 void SetNeedsBeginFrame(bool needs_begin_frame) override;
47 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
48 cc::CompositorFrame frame) override; 49 cc::CompositorFrame frame) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 81 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
81 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
82 compositor_frame_sink_private_binding_; 83 compositor_frame_sink_private_binding_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
85 }; 86 };
86 87
87 } // namespace display_compositor 88 } // namespace display_compositor
88 89
89 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698