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

Unified Diff: content/renderer/media/android/media_source_delegate.h

Issue 1185453004: Implemented setting memory limits through WebMediaPlayer interface Base URL: https://chromium.googlesource.com/chromium/src.git@set-mem-limits-on-demux-stream
Patch Set: int -> size_t Created 5 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
Index: content/renderer/media/android/media_source_delegate.h
diff --git a/content/renderer/media/android/media_source_delegate.h b/content/renderer/media/android/media_source_delegate.h
index e64423080a5f020ba5dcada987bd19545d997dc9..251d6011fd69fad0815b68e8f2828b68459d7b5d 100644
--- a/content/renderer/media/android/media_source_delegate.h
+++ b/content/renderer/media/android/media_source_delegate.h
@@ -71,6 +71,11 @@ class MediaSourceDelegate : public media::DemuxerHost {
size_t AudioDecodedByteCount() const;
size_t VideoDecodedByteCount() const;
+ size_t getAudioBufferSize() const;
+ void setAudioBufferSize(size_t size);
+ size_t getVideoBufferSize() const;
+ void setVideoBufferSize(size_t size);
+
// In MSE case, calls ChunkDemuxer::CancelPendingSeek(). Also sets the
// expectation that a regular seek will be arriving and to trivially finish
// any browser seeks that may be requested prior to the regular seek.

Powered by Google App Engine
This is Rietveld 408576698