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 23 matching lines...) Expand all Loading... |
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; | 40 void EvictCurrentSurface() override; |
41 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 41 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, | 42 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, |
43 cc::CompositorFrame frame) override; | 43 cc::CompositorFrame frame) override; |
44 void BeginFrameDidNotSwap(const cc::BeginFrameAck& begin_frame_ack) override; | 44 void BeginFrameDidNotProduceFrame( |
| 45 const cc::BeginFrameAck& begin_frame_ack) override; |
45 | 46 |
46 // cc::mojom::MojoCompositorFrameSinkPrivate: | 47 // cc::mojom::MojoCompositorFrameSinkPrivate: |
47 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; | 48 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; |
48 void RequestCopyOfSurface( | 49 void RequestCopyOfSurface( |
49 std::unique_ptr<cc::CopyOutputRequest> request) override; | 50 std::unique_ptr<cc::CopyOutputRequest> request) override; |
50 | 51 |
51 private: | 52 private: |
52 // cc::CompositorFrameSinkSupportClient implementation: | 53 // cc::CompositorFrameSinkSupportClient implementation: |
53 void DidReceiveCompositorFrameAck( | 54 void DidReceiveCompositorFrameAck( |
54 const cc::ReturnedResourceArray& resources) override; | 55 const cc::ReturnedResourceArray& resources) override; |
(...skipping 16 matching lines...) Expand all Loading... |
71 compositor_frame_sink_binding_; | 72 compositor_frame_sink_binding_; |
72 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> | 73 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> |
73 compositor_frame_sink_private_binding_; | 74 compositor_frame_sink_private_binding_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 76 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace viz | 79 } // namespace viz |
79 | 80 |
80 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ | 81 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |