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

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: Include logging.h for NOTIMPLEMENTED definition 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
« no previous file with comments | « no previous file | media/base/demuxer_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/demuxer_stream.h
diff --git a/media/base/demuxer_stream.h b/media/base/demuxer_stream.h
index 596ab67e83692aba287f11e6c1488a623ffee8e6..c4e189b7723078bfb3d6abfbbb716e080d12ceef 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, in bytes.
wolenetz 2015/06/12 21:31:57 nit: s/size/size limit/
servolk 2015/06/16 01:30:51 Done.
+ virtual int GetMemoryLimit() const;
wolenetz 2015/06/12 21:31:56 nit: signed int: is a range including negative val
servolk 2015/06/16 01:30:51 The best type for this is probably size_t, but the
+
+ // Set the data buffer size, in bytes.
wolenetz 2015/06/12 21:31:56 nit ditto (limit)
servolk 2015/06/16 01:30:51 Done.
+ virtual void SetMemoryLimit(int memory_limit);
wolenetz 2015/06/12 21:31:56 nit ditto (int ?) Also, is a DemuxerStream valid
servolk 2015/06/16 01:30:51 Yes, there are reasonable defaults for memory limi
+
protected:
// Only allow concrete implementations to get deleted.
virtual ~DemuxerStream();
« no previous file with comments | « no previous file | media/base/demuxer_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698