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

Unified Diff: content/common/media/media_param_traits.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/common/media/media_param_traits.cc
diff --git a/content/common/media/media_param_traits.cc b/content/common/media/media_param_traits.cc
index 405e89de17eb6ddd0bffcd292b01b3bd850ceb6c..4a7e41825f0549ac11efc778210593d217a5f59b 100644
--- a/content/common/media/media_param_traits.cc
+++ b/content/common/media/media_param_traits.cc
@@ -62,6 +62,7 @@ void ParamTraits<VideoCaptureFormat>::Write(Message* m,
m->WriteInt(p.frame_size.width());
m->WriteInt(p.frame_size.height());
m->WriteFloat(p.frame_rate);
+ m->WriteInt(p.number_of_dropped_frames);
m->WriteInt(static_cast<int>(p.pixel_format));
}
@@ -72,6 +73,7 @@ bool ParamTraits<VideoCaptureFormat>::Read(const Message* m,
if (!m->ReadInt(iter, &frame_size_width) ||
!m->ReadInt(iter, &frame_size_height) ||
!m->ReadFloat(iter, &r->frame_rate) ||
+ !m->ReadInt(iter, &r->number_of_dropped_frames) ||
!m->ReadInt(iter, &pixel_format))
return false;
« no previous file with comments | « content/browser/resources/media/webrtc_internals.js ('k') | content/common/media/peer_connection_tracker_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698