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

Unified Diff: content/renderer/media/video_capture_impl.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: Account for frameRate constraints when setting refresh rate in MediaStreamVideoWebRtcSink. Created 4 years, 9 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
Index: content/renderer/media/video_capture_impl.cc
diff --git a/content/renderer/media/video_capture_impl.cc b/content/renderer/media/video_capture_impl.cc
index bef9f3bed21c3449866510cb4b8dc5e7a9ba31e5..9463bba333d1a43395d624cecca476430495c174 100644
--- a/content/renderer/media/video_capture_impl.cc
+++ b/content/renderer/media/video_capture_impl.cc
@@ -217,6 +217,11 @@ void VideoCaptureImpl::StopCapture(int client_id) {
}
}
+void VideoCaptureImpl::RequestRefreshFrame() {
+ DCHECK(io_task_runner_->BelongsToCurrentThread());
+ Send(new VideoCaptureHostMsg_RequestRefreshFrame(device_id_));
+}
+
void VideoCaptureImpl::GetDeviceSupportedFormats(
const VideoCaptureDeviceFormatsCB& callback) {
DCHECK(io_task_runner_->BelongsToCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698