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

Unified Diff: media/filters/audio_renderer_algorithm.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 mock filter. 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
Index: media/filters/audio_renderer_algorithm.h
diff --git a/media/filters/audio_renderer_algorithm.h b/media/filters/audio_renderer_algorithm.h
index 940e7e7b9d7e65848219ed95dbbe90aeec195c62..965be4e680cb74408bd14c43f068bcb6180675b2 100644
--- a/media/filters/audio_renderer_algorithm.h
+++ b/media/filters/audio_renderer_algorithm.h
@@ -69,6 +69,9 @@ class MEDIA_EXPORT AudioRendererAlgorithm {
// Increase the capacity of |audio_buffer_| if possible.
void IncreaseQueueCapacity();
+ // Returns an estimate of amount of memory used for buffered frames.
xhwang 2015/10/25 17:01:56 nit: s/memory/memory in bytes/
DaleCurtis 2015/10/27 23:14:20 Done.
+ int64_t GetMemoryUsage() const;
+
// Returns the number of frames left in |audio_buffer_|, which may be larger
// than QueueCapacity() in the event that EnqueueBuffer() delivered more data
// than |audio_buffer_| was intending to hold.

Powered by Google App Engine
This is Rietveld 408576698