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

Side by Side Diff: components/frame_sinks/gpu_root_compositor_frame_sink.h

Issue 2768563002: Move DisplayCompositor code to new component. (Closed)
Patch Set: Rebase. Created 3 years, 9 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_ROOT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/display_compositor.mojom.h" 8 #include "cc/ipc/display_compositor.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/surfaces/compositor_frame_sink_support_client.h" 10 #include "cc/surfaces/compositor_frame_sink_support_client.h"
11 #include "cc/surfaces/display_client.h" 11 #include "cc/surfaces/display_client.h"
12 #include "cc/surfaces/local_surface_id.h" 12 #include "cc/surfaces/local_surface_id.h"
13 #include "cc/surfaces/surface_id.h" 13 #include "cc/surfaces/surface_id.h"
14 #include "components/display_compositor/display_compositor_export.h" 14 #include "components/frame_sinks/frame_sinks_export.h"
15 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" 15 #include "components/frame_sinks/gpu_compositor_frame_sink_delegate.h"
16 #include "mojo/public/cpp/bindings/associated_binding.h" 16 #include "mojo/public/cpp/bindings/associated_binding.h"
17 #include "mojo/public/cpp/bindings/binding.h" 17 #include "mojo/public/cpp/bindings/binding.h"
18 18
19 namespace cc { 19 namespace cc {
20 class BeginFrameSource; 20 class BeginFrameSource;
21 class CompositorFrameSinkSupport; 21 class CompositorFrameSinkSupport;
22 class Display; 22 class Display;
23 class SurfaceManager; 23 class SurfaceManager;
24 } 24 }
25 25
26 namespace display_compositor { 26 namespace frame_sinks {
27 27
28 class GpuCompositorFrameSinkDelegate; 28 class GpuCompositorFrameSinkDelegate;
29 29
30 class DISPLAY_COMPOSITOR_EXPORT GpuRootCompositorFrameSink 30 class FRAME_SINKS_EXPORT GpuRootCompositorFrameSink
31 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), 31 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient),
32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), 32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink),
33 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate), 33 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate),
34 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate), 34 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate),
35 public NON_EXPORTED_BASE(cc::DisplayClient) { 35 public NON_EXPORTED_BASE(cc::DisplayClient) {
36 public: 36 public:
37 GpuRootCompositorFrameSink( 37 GpuRootCompositorFrameSink(
38 GpuCompositorFrameSinkDelegate* delegate, 38 GpuCompositorFrameSinkDelegate* delegate,
39 cc::SurfaceManager* surface_manager, 39 cc::SurfaceManager* surface_manager,
40 const cc::FrameSinkId& frame_sink_id, 40 const cc::FrameSinkId& frame_sink_id,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 97 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
98 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink> 98 mojo::AssociatedBinding<cc::mojom::MojoCompositorFrameSink>
99 compositor_frame_sink_binding_; 99 compositor_frame_sink_binding_;
100 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 100 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
101 compositor_frame_sink_private_binding_; 101 compositor_frame_sink_private_binding_;
102 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 102 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); 104 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink);
105 }; 105 };
106 106
107 } // namespace display_compositor 107 } // namespace frame_sinks
108 108
109 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 109 #endif // COMPONENTS_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « components/frame_sinks/gpu_compositor_frame_sink_delegate.h ('k') | components/frame_sinks/gpu_root_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698