| 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_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include "components/display_compositor/display_compositor_export.h" | 8 #include "components/display_compositor/display_compositor_export.h" |
| 9 #include "components/display_compositor/gpu_compositor_frame_sink.h" | 9 #include "components/display_compositor/gpu_compositor_frame_sink_base.h" |
| 10 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" | 10 #include "components/display_compositor/gpu_compositor_frame_sink_delegate.h" |
| 11 | 11 |
| 12 namespace display_compositor { | 12 namespace display_compositor { |
| 13 | 13 |
| 14 class DISPLAY_COMPOSITOR_EXPORT GpuOffscreenCompositorFrameSink | 14 class DISPLAY_COMPOSITOR_EXPORT GpuOffscreenCompositorFrameSink |
| 15 : public GpuCompositorFrameSink { | 15 : public GpuCompositorFrameSinkBase { |
| 16 public: | 16 public: |
| 17 GpuOffscreenCompositorFrameSink( | 17 GpuOffscreenCompositorFrameSink( |
| 18 GpuCompositorFrameSinkDelegate* delegate, | 18 GpuCompositorFrameSinkDelegate* delegate, |
| 19 cc::SurfaceManager* surface_manager, | 19 cc::SurfaceManager* surface_manager, |
| 20 const cc::FrameSinkId& frame_sink_id, | 20 const cc::FrameSinkId& frame_sink_id, |
| 21 cc::mojom::MojoCompositorFrameSinkRequest request, | 21 cc::mojom::MojoCompositorFrameSinkRequest request, |
| 22 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 22 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
| 23 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 23 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 24 | 24 |
| 25 ~GpuOffscreenCompositorFrameSink() override; | 25 ~GpuOffscreenCompositorFrameSink() override; |
| 26 | 26 |
| 27 private: | 27 private: |
| 28 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; | 28 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; |
| 29 | 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(GpuOffscreenCompositorFrameSink); | 30 DISALLOW_COPY_AND_ASSIGN(GpuOffscreenCompositorFrameSink); |
| 31 }; | 31 }; |
| 32 | 32 |
| 33 } // namespace display_compositor | 33 } // namespace display_compositor |
| 34 | 34 |
| 35 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ | 35 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |