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

Unified Diff: content/renderer/media/media_stream_video_source.h

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/renderer/media/media_stream_video_source.h
diff --git a/content/renderer/media/media_stream_video_source.h b/content/renderer/media/media_stream_video_source.h
index d1ceeefa66323e87c91a3759ae78596a82ad6770..f1bd002e7472a197fa2e0415fe969cd0a2e784ce 100644
--- a/content/renderer/media/media_stream_video_source.h
+++ b/content/renderer/media/media_stream_video_source.h
@@ -90,7 +90,7 @@ class CONTENT_EXPORT MediaStreamVideoSource
virtual void SetReadyState(blink::WebMediaStreamSource::ReadyState state);
// Sets muted state and notifies it to all registered tracks.
- virtual void SetMutedState(bool state);
+ virtual void OnFrameRateCallback(float framerate, int dropped_frames);
// An implementation must fetch the formats that can currently be used by
// the source and call OnSupportedFormats when done.
@@ -118,6 +118,8 @@ class CONTENT_EXPORT MediaStreamVideoSource
// method has been called, MediaStreamVideoSource may be deleted.
virtual void StopSourceImpl() = 0;
+ virtual std::string TypeName() const;
+
enum State {
NEW,
RETRIEVING_CAPABILITIES,
« no previous file with comments | « content/common/media/peer_connection_tracker_messages.h ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698