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

Unified Diff: media/renderers/audio_renderer_impl.h

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix html viewer. Created 5 years, 2 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/filters/video_renderer_algorithm_unittest.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/audio_renderer_impl.h
diff --git a/media/renderers/audio_renderer_impl.h b/media/renderers/audio_renderer_impl.h
index 1c98c871934d2c83c26c89faf0944697c2547003..0d3418dad64f6ac9cd71d5f63ab1af32a01db51a 100644
--- a/media/renderers/audio_renderer_impl.h
+++ b/media/renderers/audio_renderer_impl.h
@@ -215,6 +215,7 @@ class MEDIA_EXPORT AudioRendererImpl
BufferingStateCB buffering_state_cb_;
base::Closure ended_cb_;
PipelineStatusCB error_cb_;
+ StatisticsCB statistics_cb_;
// Callback provided to Flush().
base::Closure flush_cb_;
@@ -222,6 +223,10 @@ class MEDIA_EXPORT AudioRendererImpl
// Overridable tick clock for testing.
scoped_ptr<base::TickClock> tick_clock_;
+ // Memory usage of |algorithm_| recorded during the last
+ // HandleSplicerBuffer_Locked() call.
+ int64_t last_audio_memory_usage_;
+
// After Initialize() has completed, all variables below must be accessed
// under |lock_|. ------------------------------------------------------------
base::Lock lock_;
« no previous file with comments | « media/filters/video_renderer_algorithm_unittest.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698