| 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 "remoting/host/desktop_capturer_proxy.h" | 5 #include "remoting/host/desktop_capturer_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 DCHECK(thread_checker_.CalledOnValidThread()); | 159 DCHECK(thread_checker_.CalledOnValidThread()); |
| 160 | 160 |
| 161 // Start() must be called before Capture(). | 161 // Start() must be called before Capture(). |
| 162 DCHECK(callback_); | 162 DCHECK(callback_); |
| 163 | 163 |
| 164 capture_task_runner_->PostTask( | 164 capture_task_runner_->PostTask( |
| 165 FROM_HERE, | 165 FROM_HERE, |
| 166 base::Bind(&Core::CaptureFrame, base::Unretained(core_.get()))); | 166 base::Bind(&Core::CaptureFrame, base::Unretained(core_.get()))); |
| 167 } | 167 } |
| 168 | 168 |
| 169 bool DesktopCapturerProxy::GetSourceList(SourceList* sources) { |
| 170 return false; |
| 171 } |
| 172 |
| 173 bool DesktopCapturerProxy::SelectSource(SourceId id) { |
| 174 return false; |
| 175 } |
| 176 |
| 169 void DesktopCapturerProxy::OnFrameCaptured( | 177 void DesktopCapturerProxy::OnFrameCaptured( |
| 170 webrtc::DesktopCapturer::Result result, | 178 webrtc::DesktopCapturer::Result result, |
| 171 std::unique_ptr<webrtc::DesktopFrame> frame) { | 179 std::unique_ptr<webrtc::DesktopFrame> frame) { |
| 172 DCHECK(thread_checker_.CalledOnValidThread()); | 180 DCHECK(thread_checker_.CalledOnValidThread()); |
| 173 | 181 |
| 174 callback_->OnCaptureResult(result, std::move(frame)); | 182 callback_->OnCaptureResult(result, std::move(frame)); |
| 175 } | 183 } |
| 176 | 184 |
| 177 } // namespace remoting | 185 } // namespace remoting |
| OLD | NEW |