| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Server side representation of a WindowSurface. | 28 // Server side representation of a WindowSurface. |
| 29 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink | 29 class DISPLAY_COMPOSITOR_EXPORT GpuCompositorFrameSink |
| 30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), | 30 : public NON_EXPORTED_BASE(cc::CompositorFrameSinkSupportClient), |
| 31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), | 31 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSink), |
| 32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { | 32 public NON_EXPORTED_BASE(cc::mojom::MojoCompositorFrameSinkPrivate) { |
| 33 public: | 33 public: |
| 34 GpuCompositorFrameSink( | 34 GpuCompositorFrameSink( |
| 35 GpuCompositorFrameSinkDelegate* delegate, | 35 GpuCompositorFrameSinkDelegate* delegate, |
| 36 cc::SurfaceManager* surface_manager, | 36 cc::SurfaceManager* surface_manager, |
| 37 const cc::FrameSinkId& frame_sink_id, | 37 const cc::FrameSinkId& frame_sink_id, |
| 38 cc::Display* display, | 38 std::unique_ptr<cc::Display> display, |
| 39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source, |
| 39 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 40 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
| 40 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 41 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 41 | 42 |
| 42 ~GpuCompositorFrameSink() override; | 43 ~GpuCompositorFrameSink() override; |
| 43 | 44 |
| 44 // cc::mojom::MojoCompositorFrameSink: | 45 // cc::mojom::MojoCompositorFrameSink: |
| 45 void EvictFrame() override; | 46 void EvictFrame() override; |
| 46 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 47 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
| 47 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 48 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 48 cc::CompositorFrame frame) override; | 49 cc::CompositorFrame frame) override; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 81 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
| 81 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 82 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
| 82 compositor_frame_sink_private_binding_; | 83 compositor_frame_sink_private_binding_; |
| 83 | 84 |
| 84 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 85 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 } // namespace display_compositor | 88 } // namespace display_compositor |
| 88 | 89 |
| 89 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ | 90 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |