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

Unified Diff: content/browser/renderer_host/media/video_capture_host.cc

Issue 2045813003: Decouple capture timestamp and reference time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit 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
Index: content/browser/renderer_host/media/video_capture_host.cc
diff --git a/content/browser/renderer_host/media/video_capture_host.cc b/content/browser/renderer_host/media/video_capture_host.cc
index 46db2279ee59ea3f1ce8779f4e0f337c026219ca..20e34a2d6785773fb6af5650548d3e13af479a37 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -91,8 +91,7 @@ void VideoCaptureHost::OnBufferDestroyed(VideoCaptureControllerID controller_id,
void VideoCaptureHost::OnBufferReady(
VideoCaptureControllerID controller_id,
int buffer_id,
- const scoped_refptr<media::VideoFrame>& video_frame,
- const base::TimeTicks& timestamp) {
+ const scoped_refptr<media::VideoFrame>& video_frame) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (entries_.find(controller_id) == entries_.end())
return;
@@ -100,7 +99,7 @@ void VideoCaptureHost::OnBufferReady(
VideoCaptureMsg_BufferReady_Params params;
params.device_id = controller_id;
params.buffer_id = buffer_id;
- params.timestamp = timestamp;
+ params.timestamp = video_frame->timestamp();
video_frame->metadata()->MergeInternalValuesInto(&params.metadata);
params.pixel_format = video_frame->format();
params.storage_type = video_frame->storage_type();

Powered by Google App Engine
This is Rietveld 408576698