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