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

Unified Diff: media/base/decoder_buffer.h

Issue 293053005: Add support for complete buffer discards. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/decoder_buffer.h
diff --git a/media/base/decoder_buffer.h b/media/base/decoder_buffer.h
index 4ff836d0f88e2dfe641bd616997d6b8a88261bdd..dcbbd2a88ef6fa6506abadd857a5a9fa17323b56 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -108,7 +108,8 @@ class MEDIA_EXPORT DecoderBuffer
// A discard window indicates the amount of data which should be discard from
// this buffer after decoding. The first value is the amount of the front and
- // the second the amount off the back.
+ // the second the amount off the back. A value of kInfiniteDuration() for the
+ // first value indicates the entire buffer should be discarded.
wolenetz 2014/05/21 01:43:02 nit: s/./, in which case the second value must be
DaleCurtis 2014/05/21 02:23:25 Done.
typedef std::pair<base::TimeDelta, base::TimeDelta> DiscardPadding;
const DiscardPadding& discard_padding() const {
DCHECK(!end_of_stream());
« media/base/audio_discard_helper_unittest.cc ('K') | « media/base/audio_discard_helper_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698