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

Unified Diff: webrtc/pc/channelmanager.cc

Issue 1740963002: Revert of Removed unused cricket::VideoCapturer methods (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | « webrtc/pc/channelmanager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/pc/channelmanager.cc
diff --git a/webrtc/pc/channelmanager.cc b/webrtc/pc/channelmanager.cc
index 92be70ca18346561f8909d4bb8e8d2c4034f3b39..fe0564bbc2b230257deefe4967ec6fe175816ffc 100644
--- a/webrtc/pc/channelmanager.cc
+++ b/webrtc/pc/channelmanager.cc
@@ -455,11 +455,31 @@
capture_manager_.get(), capturer, video_format));
}
+bool ChannelManager::MuteToBlackThenPause(
+ VideoCapturer* video_capturer, bool muted) {
+ if (!initialized_) {
+ return false;
+ }
+ worker_thread_->Invoke<void>(
+ Bind(&VideoCapturer::MuteToBlackThenPause, video_capturer, muted));
+ return true;
+}
+
bool ChannelManager::StopVideoCapture(
VideoCapturer* capturer, const VideoFormat& video_format) {
return initialized_ && worker_thread_->Invoke<bool>(
Bind(&CaptureManager::StopVideoCapture,
capture_manager_.get(), capturer, video_format));
+}
+
+bool ChannelManager::RestartVideoCapture(
+ VideoCapturer* video_capturer,
+ const VideoFormat& previous_format,
+ const VideoFormat& desired_format,
+ CaptureManager::RestartOptions options) {
+ return initialized_ && worker_thread_->Invoke<bool>(
+ Bind(&CaptureManager::RestartVideoCapture, capture_manager_.get(),
+ video_capturer, previous_format, desired_format, options));
}
void ChannelManager::AddVideoSink(
« no previous file with comments | « webrtc/pc/channelmanager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698