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

Unified Diff: media/base/demuxer_stream.h

Issue 1171263004: Allow setting memory limits on media::DemuxerStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed typo 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: media/base/demuxer_stream.h
diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h
index 596ab67e83692aba287f11e6c1488a623ffee8e6..c2620c0238555acef9d449eb37995a478717ee64 100644
--- a/media/base/demuxer_stream.h
+++ b/media/base/demuxer_stream.h
@@ -91,6 +91,12 @@ class MEDIA_EXPORT DemuxerStream {
virtual VideoRotation video_rotation() = 0;
+ // Get the data buffer size limit, in bytes.
ddorwin 2015/06/17 21:02:16 Similar to my comments in https://codereview.chrom
servolk 2015/06/17 22:13:48 See the comment in that CL. It's a "buffer" that h
ddorwin 2015/06/20 01:50:26 Those are two examples of qualified uses of "buffe
+ virtual size_t GetMemoryLimit() const = 0;
ddorwin 2015/06/17 21:02:16 Is this ever called? I don't see it being used her
servolk 2015/06/17 22:13:48 It's currently called in the unit tests (see the c
ddorwin 2015/06/20 01:50:26 Is that the amount of memory _currently_ available
+
+ // Set the data buffer size limit, in bytes.
+ virtual void SetMemoryLimit(size_t memory_limit) = 0;
+
protected:
// Only allow concrete implementations to get deleted.
virtual ~DemuxerStream();

Powered by Google App Engine
This is Rietveld 408576698