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

Unified Diff: media/base/pipeline_impl.h

Issue 2071503003: Avoid flooding main thread by caching state on media thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adds dcheck Created 4 years, 6 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_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_impl.h
diff --git a/media/base/pipeline_impl.h b/media/base/pipeline_impl.h
index beb0b010492b908fc56ffcbc6de193779f045ac2..45b4454c5ce1e220652a6696ad802f3a4924e4b9 100644
--- a/media/base/pipeline_impl.h
+++ b/media/base/pipeline_impl.h
@@ -128,8 +128,6 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline {
void OnWaitingForDecryptionKey();
void OnVideoNaturalSizeChange(const gfx::Size& size);
void OnVideoOpacityChange(bool opaque);
- void OnBufferedTimeRangesChange(const Ranges<base::TimeDelta>& ranges);
- void OnStatisticsUpdate(const PipelineStatistics& stats);
// Task completion callbacks from RendererWrapper.
void OnSeekDone(base::TimeDelta start_time);
@@ -161,19 +159,9 @@ class MEDIA_EXPORT PipelineImpl : public Pipeline {
// filters.
float volume_;
- // Amount of available buffered data as reported by Demuxer.
- Ranges<base::TimeDelta> buffered_time_ranges_;
-
// Current duration as reported by Demuxer.
base::TimeDelta duration_;
- // True when OnBufferedTimeRangesChange() has been called more recently than
- // DidLoadingProgress().
- bool did_loading_progress_;
-
- // Accumulated statistics reported by the renderer.
- PipelineStatistics statistics_;
-
base::ThreadChecker thread_checker_;
base::WeakPtrFactory<PipelineImpl> weak_factory_;
« no previous file with comments | « no previous file | media/base/pipeline_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698