| 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_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_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.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 OffscreenCanvasCompositorFrameSink |
| 15 : public GpuCompositorFrameSink { | 15 : public GpuCompositorFrameSink { |
| 16 public: | 16 public: |
| 17 GpuOffscreenCompositorFrameSink( | 17 OffscreenCanvasCompositorFrameSink( |
| 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, | |
| 23 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 22 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 24 | 23 |
| 25 ~GpuOffscreenCompositorFrameSink() override; | 24 ~OffscreenCanvasCompositorFrameSink() override; |
| 26 | 25 |
| 27 private: | 26 private: |
| 28 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; | 27 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; |
| 29 | 28 |
| 30 DISALLOW_COPY_AND_ASSIGN(GpuOffscreenCompositorFrameSink); | 29 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 } // namespace display_compositor | 32 } // namespace display_compositor |
| 34 | 33 |
| 35 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ | 34 #endif // COMPONENTS_DISPLAY_COMPOSITOR_OFFSCREEN_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |