| 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_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 GpuCompositorFrameSinkDelegate* delegate, | 30 GpuCompositorFrameSinkDelegate* delegate, |
| 31 cc::SurfaceManager* surface_manager, | 31 cc::SurfaceManager* surface_manager, |
| 32 const cc::FrameSinkId& frame_sink_id, | 32 const cc::FrameSinkId& frame_sink_id, |
| 33 cc::mojom::MojoCompositorFrameSinkRequest request, | 33 cc::mojom::MojoCompositorFrameSinkRequest request, |
| 34 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 34 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
| 35 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 35 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
| 36 | 36 |
| 37 ~GpuCompositorFrameSink() override; | 37 ~GpuCompositorFrameSink() override; |
| 38 | 38 |
| 39 // cc::mojom::MojoCompositorFrameSink: | 39 // cc::mojom::MojoCompositorFrameSink: |
| 40 void EvictCurrentSurface() override; | |
| 41 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 40 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
| 42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 41 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
| 43 cc::CompositorFrame frame) override; | 42 cc::CompositorFrame frame) override; |
| 44 void DidNotProduceFrame(const cc::BeginFrameAck& begin_frame_ack) override; | 43 void DidNotProduceFrame(const cc::BeginFrameAck& begin_frame_ack) override; |
| 45 | 44 |
| 46 // cc::mojom::MojoCompositorFrameSinkPrivate: | 45 // cc::mojom::MojoCompositorFrameSinkPrivate: |
| 47 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; | 46 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; |
| 48 void RequestCopyOfSurface( | 47 void RequestCopyOfSurface( |
| 49 std::unique_ptr<cc::CopyOutputRequest> request) override; | 48 std::unique_ptr<cc::CopyOutputRequest> request) override; |
| 50 | 49 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 71 compositor_frame_sink_binding_; | 70 compositor_frame_sink_binding_; |
| 72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 71 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
| 73 compositor_frame_sink_private_binding_; | 72 compositor_frame_sink_private_binding_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 74 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace viz | 77 } // namespace viz |
| 79 | 78 |
| 80 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 79 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |