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

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

Issue 1849003002: Add video frame refresh to MediaStream and VideoCapture stacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nick's PS3 comments (moving non-observer impl out of MSVideoSink interface). Created 4 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/media/video_track_recorder.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
diff --git a/content/renderer/media/video_capture_impl_manager.cc b/content/renderer/media/video_capture_impl_manager.cc
index 1ce78d6b0bdd8cc0b8fa33d4d900d75653c747c0..478a169cea3f88c7f1a6ddc797a145e93b3ad66c 100644
--- a/content/renderer/media/video_capture_impl_manager.cc
+++ b/content/renderer/media/video_capture_impl_manager.cc
@@ -96,6 +96,19 @@ base::Closure VideoCaptureImplManager::StartCapture(
weak_factory_.GetWeakPtr(), client_id, id);
}
+void VideoCaptureImplManager::RequestRefreshFrame(
+ media::VideoCaptureSessionId id) {
+ DCHECK(render_main_task_runner_->BelongsToCurrentThread());
+ const VideoCaptureDeviceMap::const_iterator it = devices_.find(id);
+ DCHECK(it != devices_.end());
+ VideoCaptureImpl* const impl = it->second.second;
+ ChildProcess::current()->io_task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&VideoCaptureImpl::RequestRefreshFrame,
+ base::Unretained(impl)));
+}
+
+
void VideoCaptureImplManager::GetDeviceSupportedFormats(
media::VideoCaptureSessionId id,
const VideoCaptureDeviceFormatsCB& callback) {
« no previous file with comments | « content/renderer/media/video_capture_impl_manager.h ('k') | content/renderer/media/video_track_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698