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

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: 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..9c930d809f17875c684b74e1cf59f0e918c77a68 100644
--- a/content/browser/renderer_host/media/video_capture_host.cc
+++ b/content/browser/renderer_host/media/video_capture_host.cc
@@ -92,7 +92,7 @@ void VideoCaptureHost::OnBufferReady(
VideoCaptureControllerID controller_id,
int buffer_id,
const scoped_refptr<media::VideoFrame>& video_frame,
- const base::TimeTicks& timestamp) {
+ base::TimeTicks reference_time) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
if (entries_.find(controller_id) == entries_.end())
return;
@@ -100,7 +100,8 @@ 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();
+ params.reference_time = reference_time;
miu 2016/06/07 20:03:47 There's no need to add a new |reference_time| to t
qiangchen 2016/06/08 18:04:30 Done.
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