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

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

Issue 2684933003: Move frame_sink_id management to framesink_manager.cc/h from (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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_DISPLAY_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "components/display_compositor/gpu_compositor_frame_sink.h" 8 #include "components/display_compositor/gpu_compositor_frame_sink.h"
9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" 9 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h"
10 #include "mojo/public/cpp/bindings/associated_binding.h" 10 #include "mojo/public/cpp/bindings/associated_binding.h"
11 11
12 namespace display_compositor { 12 namespace display_compositor {
13 13
14 class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink 14 class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink
15 : public GpuCompositorFrameSink, 15 : public GpuCompositorFrameSink,
16 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate) { 16 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate) {
17 public: 17 public:
18 GpuDisplayCompositorFrameSink( 18 GpuDisplayCompositorFrameSink(
19 GpuCompositorFrameSinkDelegate* delegate, 19 GpuCompositorFrameSinkDelegate* delegate,
20 cc::SurfaceManager* surface_manager, 20 cc::SurfaceManager* surface_manager,
21 cc::FrameSinkManager* framesink_manager,
21 const cc::FrameSinkId& frame_sink_id, 22 const cc::FrameSinkId& frame_sink_id,
22 std::unique_ptr<cc::Display> display, 23 std::unique_ptr<cc::Display> display,
23 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, 24 std::unique_ptr<cc::BeginFrameSource> begin_frame_source,
24 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, 25 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request,
25 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, 26 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request,
26 cc::mojom::MojoCompositorFrameSinkClientPtr client, 27 cc::mojom::MojoCompositorFrameSinkClientPtr client,
27 cc::mojom::DisplayPrivateAssociatedRequest display_private_request); 28 cc::mojom::DisplayPrivateAssociatedRequest display_private_request);
28 29
29 ~GpuDisplayCompositorFrameSink() override; 30 ~GpuDisplayCompositorFrameSink() override;
30 31
31 // cc::mojom::DisplayPrivate: 32 // cc::mojom::DisplayPrivate:
32 void SetDisplayVisible(bool visible) override; 33 void SetDisplayVisible(bool visible) override;
33 void ResizeDisplay(const gfx::Size& size) override; 34 void ResizeDisplay(const gfx::Size& size) override;
34 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override; 35 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
35 void SetOutputIsSecure(bool secure) override; 36 void SetOutputIsSecure(bool secure) override;
36 37
37 private: 38 private:
38 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_; 39 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> binding_;
39 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 40 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink); 42 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink);
42 }; 43 };
43 44
44 } // namespace display_compositor 45 } // namespace display_compositor
45 46
46 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ 47 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698