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: media/cast/logging/logging_impl.cc

Issue 136903003: cast: Wire upp logging to be sent over RTCP between receiver and sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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_impl.cc
diff --git a/media/cast/logging/logging_impl.cc b/media/cast/logging/logging_impl.cc
index 1c67c50e80fe705851d9a886de655bdf0151dde0..0a911efa827402298f7e913d5fd520fa340e669b 100644
--- a/media/cast/logging/logging_impl.cc
+++ b/media/cast/logging/logging_impl.cc
@@ -14,7 +14,7 @@ LoggingImpl::LoggingImpl(scoped_refptr<base::TaskRunner> main_thread_proxy,
const CastLoggingConfig& config)
: main_thread_proxy_(main_thread_proxy),
config_(config),
- raw_(),
+ raw_(config.is_sender),
stats_() {}
LoggingImpl::~LoggingImpl() {}
@@ -159,6 +159,16 @@ GenericRawMap LoggingImpl::GetGenericRawData() {
return raw_.GetGenericData();
}
+AudioRtcpRawMap LoggingImpl::GetAudioRtcpRawData() {
+ DCHECK(main_thread_proxy_->RunsTasksOnCurrentThread());
+ return raw_.GetAndResetAudioRtcpData();
+}
+
+VideoRtcpRawMap LoggingImpl::GetVideoRtcpRawData() {
+ DCHECK(main_thread_proxy_->RunsTasksOnCurrentThread());
+ return raw_.GetAndResetVideoRtcpData();
+}
+
const FrameStatsMap* LoggingImpl::GetFrameStatsData(
const base::TimeTicks& now) {
DCHECK(main_thread_proxy_->RunsTasksOnCurrentThread());

Powered by Google App Engine
This is Rietveld 408576698