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

Unified Diff: content/renderer/media/webrtc/video_destination_handler.cc

Issue 242013002: Refactor video capturing code in the render process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged again :( Created 6 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
Index: content/renderer/media/webrtc/video_destination_handler.cc
diff --git a/content/renderer/media/webrtc/video_destination_handler.cc b/content/renderer/media/webrtc/video_destination_handler.cc
index ac16f1e693b0e96e3a74ff5dd28b36943e8ca107..bec6febd4d8567ea8d4a3ce3c4018e4f89865a43 100644
--- a/content/renderer/media/webrtc/video_destination_handler.cc
+++ b/content/renderer/media/webrtc/video_destination_handler.cc
@@ -116,7 +116,9 @@ void PpFrameWriter::PutFrame(PPB_ImageData_Impl* image_data,
new_frame->stride(media::VideoFrame::kVPlane),
frame_size.width(), frame_size.height());
- DeliverVideoFrame(new_frame);
+ // TODO(hclam): Should take into account |timestamp|.
+ // Not all sinks care about the TimeTicks so it's not a problem now.
Ami GONE FROM CHROMIUM 2014/04/24 21:04:31 ditto comment elsewhere, why wouldn't you use |tim
Alpha Left Google 2014/04/24 22:50:34 The parameter is a TimeTicks. I would need to save
Ami GONE FROM CHROMIUM 2014/04/24 23:05:18 I'm unclear on why synchronization can't be done u
Alpha Left Google 2014/04/24 23:33:53 When a frame is captured in the browser. It is tag
+ DeliverVideoFrame(new_frame, format_, base::TimeTicks::Now());
}
// PpFrameWriterProxy is a helper class to make sure the user won't use
@@ -190,4 +192,3 @@ bool VideoDestinationHandler::Open(
}
} // namespace content
-

Powered by Google App Engine
This is Rietveld 408576698