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: webrtc/api/video/video_content_type.cc

Issue 3009793002: Implement googContentType GetStats metric reported on receive side. (Closed)
Patch Set: Fix broken tests on ASAN Created 3 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
« no previous file with comments | « webrtc/api/video/video_content_type.h ('k') | webrtc/call/video_receive_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/video/video_content_type.cc
diff --git a/webrtc/api/video/video_content_type.cc b/webrtc/api/video/video_content_type.cc
index 278b57c5f5625b5dd909821215b017588ebf8588..351cfeefb600f1c189fe5167a47439c3079b8584 100644
--- a/webrtc/api/video/video_content_type.cc
+++ b/webrtc/api/video/video_content_type.cc
@@ -90,5 +90,9 @@ bool IsValidContentType(uint8_t value) {
// Any 6-bit value is allowed.
return value < (1 << kTotalBitsSize);
}
+
+const char* ToString(const VideoContentType& content_type) {
+ return IsScreenshare(content_type) ? "screen" : "realtime";
+}
} // namespace videocontenttypehelpers
} // namespace webrtc
« no previous file with comments | « webrtc/api/video/video_content_type.h ('k') | webrtc/call/video_receive_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698