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

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

Issue 617093003: Add MediaStreamSource frame rate calculation to the tracker. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding type name. Fixing IPC type problem. Created 6 years, 3 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/peer_connection_tracker_host.cc
diff --git a/content/browser/renderer_host/media/peer_connection_tracker_host.cc b/content/browser/renderer_host/media/peer_connection_tracker_host.cc
index cae185d65985b417d0abfd58a768f7cb7b87bbb6..2626a25b29f0eaaddf7cda01ea482ea821b4b328 100644
--- a/content/browser/renderer_host/media/peer_connection_tracker_host.cc
+++ b/content/browser/renderer_host/media/peer_connection_tracker_host.cc
@@ -27,6 +27,8 @@ bool PeerConnectionTrackerHost::OnMessageReceived(const IPC::Message& message) {
OnUpdatePeerConnection)
IPC_MESSAGE_HANDLER(PeerConnectionTrackerHost_AddStats, OnAddStats)
IPC_MESSAGE_HANDLER(PeerConnectionTrackerHost_GetUserMedia, OnGetUserMedia)
+ IPC_MESSAGE_HANDLER(PeerConnectionTrackerHost_AddVideoStats,
+ OnAddVideoStats)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -106,6 +108,13 @@ void PeerConnectionTrackerHost::OnGetUserMedia(
video_constraints);
}
+void PeerConnectionTrackerHost::OnAddVideoStats(const std::string& video_id,
+ float input_frame_rate,
+ int number_of_dropped_frames) {
+ WebRTCInternals::GetInstance()->OnAddVideoStats(
+ peer_pid(), video_id, input_frame_rate, number_of_dropped_frames);
+}
+
void PeerConnectionTrackerHost::OnSuspend() {
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
base::Bind(&PeerConnectionTrackerHost::SendOnSuspendOnUIThread, this));

Powered by Google App Engine
This is Rietveld 408576698