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 #include "components/display_compositor/gpu_compositor_frame_sink.h" | 5 #include "components/display_compositor/gpu_compositor_frame_sink.h" |
6 | 6 |
7 namespace display_compositor { | 7 namespace display_compositor { |
8 | 8 |
9 GpuCompositorFrameSink::GpuCompositorFrameSink( | 9 GpuCompositorFrameSink::GpuCompositorFrameSink( |
10 GpuCompositorFrameSinkDelegate* delegate, | 10 GpuCompositorFrameSinkDelegate* delegate, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { | 43 void GpuCompositorFrameSink::SetNeedsBeginFrame(bool needs_begin_frame) { |
44 support_->SetNeedsBeginFrame(needs_begin_frame); | 44 support_->SetNeedsBeginFrame(needs_begin_frame); |
45 } | 45 } |
46 | 46 |
47 void GpuCompositorFrameSink::SubmitCompositorFrame( | 47 void GpuCompositorFrameSink::SubmitCompositorFrame( |
48 const cc::LocalSurfaceId& local_surface_id, | 48 const cc::LocalSurfaceId& local_surface_id, |
49 cc::CompositorFrame frame) { | 49 cc::CompositorFrame frame) { |
50 support_->SubmitCompositorFrame(local_surface_id, std::move(frame)); | 50 support_->SubmitCompositorFrame(local_surface_id, std::move(frame)); |
51 } | 51 } |
52 | 52 |
| 53 void GpuCompositorFrameSink::BeginFrameDidNotSwap( |
| 54 const cc::BeginFrameAck& begin_frame_ack) { |
| 55 support_->BeginFrameDidNotSwap(begin_frame_ack); |
| 56 } |
| 57 |
53 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { | 58 void GpuCompositorFrameSink::DidReceiveCompositorFrameAck() { |
54 if (client_) | 59 if (client_) |
55 client_->DidReceiveCompositorFrameAck(); | 60 client_->DidReceiveCompositorFrameAck(); |
56 } | 61 } |
57 | 62 |
58 void GpuCompositorFrameSink::ClaimTemporaryReference( | 63 void GpuCompositorFrameSink::ClaimTemporaryReference( |
59 const cc::SurfaceId& surface_id) { | 64 const cc::SurfaceId& surface_id) { |
60 support_->ClaimTemporaryReference(surface_id); | 65 support_->ClaimTemporaryReference(surface_id); |
61 } | 66 } |
62 | 67 |
(...skipping 28 matching lines...) Expand all Loading... |
91 } | 96 } |
92 | 97 |
93 void GpuCompositorFrameSink::OnPrivateConnectionLost() { | 98 void GpuCompositorFrameSink::OnPrivateConnectionLost() { |
94 private_connection_lost_ = true; | 99 private_connection_lost_ = true; |
95 // Request destruction of |this| only if both connections are lost. | 100 // Request destruction of |this| only if both connections are lost. |
96 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), | 101 delegate_->OnPrivateConnectionLost(support_->frame_sink_id(), |
97 client_connection_lost_); | 102 client_connection_lost_); |
98 } | 103 } |
99 | 104 |
100 } // namespace display_compositor | 105 } // namespace display_compositor |
OLD | NEW |