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

Unified Diff: remoting/protocol/fake_desktop_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/protocol/connection_unittest.cc ('k') | remoting/protocol/video_frame_pump.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/fake_desktop_capturer.cc
diff --git a/remoting/protocol/fake_desktop_capturer.cc b/remoting/protocol/fake_desktop_capturer.cc
index 9b15e9a50cdd08bb3e4a3bf92fccf0bef98b213d..f6042fd0e5c5b050dd02a433a201a534c7a47984 100644
--- a/remoting/protocol/fake_desktop_capturer.cc
+++ b/remoting/protocol/fake_desktop_capturer.cc
@@ -153,7 +153,10 @@ void FakeDesktopCapturer::Capture(const webrtc::DesktopRegion& region) {
frame->set_capture_time_ms(
(base::Time::Now() - capture_start_time).InMillisecondsRoundedUp());
}
- callback_->OnCaptureCompleted(frame.release());
+ callback_->OnCaptureResult(
+ frame ? webrtc::DesktopCapturer::Result::SUCCESS
+ : webrtc::DesktopCapturer::Result::ERROR_TEMPORARY,
+ std::move(frame));
}
} // namespace protocol
« no previous file with comments | « remoting/protocol/connection_unittest.cc ('k') | remoting/protocol/video_frame_pump.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698