OLD | NEW |
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 "cc/surfaces/display.h" | 8 #include "cc/surfaces/display.h" |
9 #include "cc/surfaces/display_client.h" | 9 #include "cc/surfaces/display_client.h" |
10 #include "components/display_compositor/gpu_compositor_frame_sink.h" | 10 #include "components/display_compositor/gpu_compositor_frame_sink_base.h" |
11 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" | 11 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" |
12 #include "mojo/public/cpp/bindings/associated_binding.h" | 12 #include "mojo/public/cpp/bindings/associated_binding.h" |
13 | 13 |
14 namespace display_compositor { | 14 namespace display_compositor { |
15 | 15 |
16 class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink | 16 class DISPLAY_COMPOSITOR_EXPORT GpuDisplayCompositorFrameSink |
17 : public GpuCompositorFrameSink, | 17 : public GpuCompositorFrameSinkBase, |
18 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate), | 18 public NON_EXPORTED_BASE(cc::mojom::DisplayPrivate), |
19 public NON_EXPORTED_BASE(cc::DisplayClient) { | 19 public NON_EXPORTED_BASE(cc::DisplayClient) { |
20 public: | 20 public: |
21 GpuDisplayCompositorFrameSink( | 21 GpuDisplayCompositorFrameSink( |
22 GpuCompositorFrameSinkDelegate* delegate, | 22 GpuCompositorFrameSinkDelegate* delegate, |
23 cc::SurfaceManager* surface_manager, | 23 cc::SurfaceManager* surface_manager, |
24 const cc::FrameSinkId& frame_sink_id, | 24 const cc::FrameSinkId& frame_sink_id, |
25 std::unique_ptr<cc::Display> display, | 25 std::unique_ptr<cc::Display> display, |
26 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, | 26 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, |
27 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, | 27 cc::mojom::MojoCompositorFrameSinkAssociatedRequest request, |
(...skipping 27 matching lines...) Expand all Loading... |
55 // gpu::SurfaceHandle. | 55 // gpu::SurfaceHandle. |
56 std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_; | 56 std::unique_ptr<cc::BeginFrameSource> display_begin_frame_source_; |
57 std::unique_ptr<cc::Display> display_; | 57 std::unique_ptr<cc::Display> display_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink); | 59 DISALLOW_COPY_AND_ASSIGN(GpuDisplayCompositorFrameSink); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace display_compositor | 62 } // namespace display_compositor |
63 | 63 |
64 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ | 64 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_DISPLAY_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |