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

Unified Diff: media/cast/logging/logging_defines.h

Issue 165723002: Cast: Implemented size limiting and event filtering in EncodingEventSubscriber. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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: media/cast/logging/logging_defines.h
diff --git a/media/cast/logging/logging_defines.h b/media/cast/logging/logging_defines.h
index 38d1b9f849edca40534b8f75f605b47df429b08c..a080228bb5f98afae7f1537befb148cdd73b8a6f 100644
--- a/media/cast/logging/logging_defines.h
+++ b/media/cast/logging/logging_defines.h
@@ -16,6 +16,8 @@ namespace cast {
static const uint32 kFrameIdUnknown = 0xFFFFFFFF;
+typedef uint32 RtpTimestamp;
+
struct CastLoggingConfig {
// Constructs default config - all logging is disabled.
CastLoggingConfig();
@@ -73,7 +75,10 @@ enum CastLoggingEvent {
std::string CastLoggingToString(CastLoggingEvent event);
-typedef uint32 RtpTimestamp;
+// CastLoggingEvent are classified into one of three following types.
+enum EventMediaType { AUDIO_EVENT, VIDEO_EVENT, OTHER_EVENT };
+
+EventMediaType GetEventMediaType(CastLoggingEvent event);
struct FrameEvent {
FrameEvent();

Powered by Google App Engine
This is Rietveld 408576698