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

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: Merge TOT 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
« no previous file with comments | « media/cast/logging/logging_impl.h ('k') | media/cast/logging/logging_raw.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/logging_impl.cc
diff --git a/media/cast/logging/logging_impl.cc b/media/cast/logging/logging_impl.cc
index 9e157c76f2aec6fe7e053ea54c6580026411ed94..90af985ce679062f997d574c2c813233a8292449 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() {}
@@ -198,6 +198,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());
« no previous file with comments | « media/cast/logging/logging_impl.h ('k') | media/cast/logging/logging_raw.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698