Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1401)

Unified Diff: remoting/host/ipc_video_frame_capturer.cc

Issue 2050353002: Update webrtc::DesktopCapturer clients to implement OnCaptureResult(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chromeos Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_video_frame_capturer.cc
diff --git a/remoting/host/ipc_video_frame_capturer.cc b/remoting/host/ipc_video_frame_capturer.cc
index 23cc5e0c2cad1610e81074065df333929316d446..396d83ce6076ef2cbe870ef686a331eab6711059 100644
--- a/remoting/host/ipc_video_frame_capturer.cc
+++ b/remoting/host/ipc_video_frame_capturer.cc
@@ -33,11 +33,12 @@ void IpcVideoFrameCapturer::Capture(const webrtc::DesktopRegion& region) {
desktop_session_proxy_->CaptureFrame();
}
-void IpcVideoFrameCapturer::OnCaptureCompleted(
+void IpcVideoFrameCapturer::OnCaptureResult(
+ webrtc::DesktopCapturer::Result result,
std::unique_ptr<webrtc::DesktopFrame> frame) {
DCHECK(capture_pending_);
capture_pending_ = false;
- callback_->OnCaptureCompleted(frame.release());
+ callback_->OnCaptureResult(result, std::move(frame));
}
} // namespace remoting
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.h ('k') | remoting/protocol/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698