Index: chromecast/media/cma/pipeline/media_pipeline_impl.h |
diff --git a/chromecast/media/cma/pipeline/media_pipeline_impl.h b/chromecast/media/cma/pipeline/media_pipeline_impl.h |
index 6773643d49640106a0a850ba5baaea62289203a2..fe5c6d2600952f7f69351ce3746ec2edef0a8f19 100644 |
--- a/chromecast/media/cma/pipeline/media_pipeline_impl.h |
+++ b/chromecast/media/cma/pipeline/media_pipeline_impl.h |
@@ -13,6 +13,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
#include "base/threading/thread_checker.h" |
+#include "base/time/time.h" |
#include "chromecast/media/cma/pipeline/load_type.h" |
#include "chromecast/media/cma/pipeline/media_pipeline_client.h" |
#include "chromecast/public/media/media_pipeline_backend.h" |
@@ -82,6 +83,8 @@ class MediaPipelineImpl { |
void OnError(::media::PipelineStatus error); |
+ void ResetBitrateState(); |
+ |
base::ThreadChecker thread_checker_; |
MediaPipelineClient client_; |
scoped_ptr<BufferingController> buffering_controller_; |
@@ -108,6 +111,10 @@ class MediaPipelineImpl { |
// Used to make the statistics update period a multiplier of the time update |
// period. |
int statistics_rolling_counter_; |
+ base::Time last_sample_time_; |
kmackay
2016/03/11 17:47:40
I recommend using base::TimeTicks
ejason
2016/03/11 20:18:08
Done.
|
+ base::TimeDelta elapsed_time_delta_; |
+ int audio_bytes_for_bitrate_estimation_; |
+ int video_bytes_for_bitrate_estimation_; |
base::WeakPtr<MediaPipelineImpl> weak_this_; |
base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; |