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

Unified Diff: media/base/pipeline.cc

Issue 13870004: Expose MEDIA_STATISTICS stats to chrome://media-internals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 8 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/base/media_log_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline.cc
diff --git a/media/base/pipeline.cc b/media/base/pipeline.cc
index 1b88deb10f5fc34eb810ba14899a7b033cadeb90..e656ef3b064e88fc8e11de754f1505ba16536f79 100644
--- a/media/base/pipeline.cc
+++ b/media/base/pipeline.cc
@@ -720,6 +720,8 @@ void Pipeline::OnUpdateStatistics(const PipelineStatistics& stats) {
statistics_.video_bytes_decoded += stats.video_bytes_decoded;
statistics_.video_frames_decoded += stats.video_frames_decoded;
statistics_.video_frames_dropped += stats.video_frames_dropped;
+ media_log_->AddEvent(
+ media_log_->CreatePipelineStatisticsChangedEvent(statistics_));
}
void Pipeline::StartTask(scoped_ptr<FilterCollection> filter_collection,
« no previous file with comments | « media/base/media_log_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698