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

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

Issue 2612083002: DirectCompositorFrameSink Uses CompositorFrameSinkSupport (Closed)
Patch Set: Set NeedsBeginFrame to false before resetting support_ 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 std::unique_ptr<cc::Display> display, 38 cc::Display* display,
39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 39 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
41 cc::mojom::MojoCompositorFrameSinkClientPtr client); 40 cc::mojom::MojoCompositorFrameSinkClientPtr client);
42 41
43 ~GpuCompositorFrameSink() override; 42 ~GpuCompositorFrameSink() override;
44 43
45 // cc::mojom::MojoCompositorFrameSink: 44 // cc::mojom::MojoCompositorFrameSink:
46 void EvictFrame() override; 45 void EvictFrame() override;
47 void SetNeedsBeginFrame(bool needs_begin_frame) override; 46 void SetNeedsBeginFrame(bool needs_begin_frame) override;
48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 47 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
49 cc::CompositorFrame frame) override; 48 cc::CompositorFrame frame) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 80 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 81 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
83 compositor_frame_sink_private_binding_; 82 compositor_frame_sink_private_binding_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 84 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
86 }; 85 };
87 86
88 } // namespace display_compositor 87 } // namespace display_compositor
89 88
90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 89 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698