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