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 #include "cc/surfaces/surface_reference.h" | 7 #include "cc/surfaces/surface_reference.h" |
8 | 8 |
9 namespace display_compositor { | 9 namespace display_compositor { |
10 | 10 |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 private_connection_lost_); | 143 private_connection_lost_); |
144 } | 144 } |
145 | 145 |
146 void GpuCompositorFrameSink::OnPrivateConnectionLost() { | 146 void GpuCompositorFrameSink::OnPrivateConnectionLost() { |
147 private_connection_lost_ = true; | 147 private_connection_lost_ = true; |
148 // Request destruction of |this| only if both connections are lost. | 148 // Request destruction of |this| only if both connections are lost. |
149 delegate_->OnPrivateConnectionLost(support_.frame_sink_id(), | 149 delegate_->OnPrivateConnectionLost(support_.frame_sink_id(), |
150 client_connection_lost_); | 150 client_connection_lost_); |
151 } | 151 } |
152 | 152 |
| 153 void GpuCompositorFrameSink::RequestCopyOfSurface( |
| 154 std::unique_ptr<cc::CopyOutputRequest> request, |
| 155 const RequestCopyOfSurfaceCallback& callback) { |
| 156 request->set_result_callback(callback); |
| 157 support_.RequestCopyOfSurface(std::move(request)); |
| 158 } |
| 159 |
| 160 void GpuCompositorFrameSink::DeleteMailbox(const gpu::Mailbox& mailbox, |
| 161 const ::gpu::SyncToken& sync_token, |
| 162 bool is_lost) { |
| 163 support_.DeleteMailbox(mailbox, sync_token, is_lost); |
| 164 } |
| 165 |
153 } // namespace display_compositor | 166 } // namespace display_compositor |
OLD | NEW |