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

Unified Diff: media/base/pipeline_impl.cc

Issue 2611333003: [Video] Disable bg optimization if avg keyframe distance is >10s (Closed)
Patch Set: Unittest Created 3 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 | « no previous file | media/base/pipeline_status.h » ('j') | media/filters/decoder_stream_traits.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_impl.cc
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index 85b54ec6a274af7867d7cff74ea3ec45a72dbea5..662f4f9769fc535126152b3a4c1f88d3594ed80e 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -637,6 +637,8 @@ void PipelineImpl::RendererWrapper::OnStatisticsUpdate(
shared_state_.statistics.video_frames_dropped += stats.video_frames_dropped;
shared_state_.statistics.audio_memory_usage += stats.audio_memory_usage;
shared_state_.statistics.video_memory_usage += stats.video_memory_usage;
+ shared_state_.statistics.video_keyframe_distance_average =
+ stats.video_keyframe_distance_average;
}
void PipelineImpl::RendererWrapper::OnBufferingStateChange(
« no previous file with comments | « no previous file | media/base/pipeline_status.h » ('j') | media/filters/decoder_stream_traits.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698