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

Unified Diff: content/renderer/media/video_capture_impl_manager.cc

Issue 14175015: Allow VideoCaptureImpl to suspend/resume frame delivery to its client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review Created 7 years, 8 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 | « content/renderer/media/video_capture_impl_manager.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl_manager.cc
===================================================================
--- content/renderer/media/video_capture_impl_manager.cc (revision 193973)
+++ content/renderer/media/video_capture_impl_manager.cc (working copy)
@@ -37,6 +37,12 @@
return it->second->vc;
}
+void VideoCaptureImplManager::SuspendDevices(bool suspend) {
+ base::AutoLock auto_lock(lock_);
+ for (Devices::iterator it = devices_.begin(); it != devices_.end(); ++it)
+ it->second->vc->SuspendCapture(suspend);
+}
+
void VideoCaptureImplManager::RemoveDevice(
media::VideoCaptureSessionId id,
media::VideoCapture::EventHandler* handler) {
« no previous file with comments | « content/renderer/media/video_capture_impl_manager.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698