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

Unified Diff: media/base/decoder_buffer.h

Issue 2158923004: Convert media constants to constexpr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 64a881093343111d9e77dce584bc105491906c51..d100db0595409ecc1e22b406be60eb5cab7a8b3b 100644
--- a/media/base/decoder_buffer.h
+++ b/media/base/decoder_buffer.h
@@ -86,8 +86,8 @@ class MEDIA_EXPORT DecoderBuffer
void set_duration(base::TimeDelta duration) {
DCHECK(!end_of_stream());
- DCHECK(duration == kNoTimestamp() ||
- (duration >= base::TimeDelta() && duration != kInfiniteDuration()))
+ DCHECK(duration == kNoTimestamp ||
+ (duration >= base::TimeDelta() && duration != kInfiniteDuration))
<< duration.InSecondsF();
duration_ = duration;
}
@@ -119,7 +119,7 @@ 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. A value of kInfiniteDuration() for the
+ // the second the amount off the back. A value of kInfiniteDuration for the
// first value indicates the entire buffer should be discarded; the second
// value must be base::TimeDelta() in this case.
typedef std::pair<base::TimeDelta, base::TimeDelta> DiscardPadding;
@@ -149,13 +149,13 @@ class MEDIA_EXPORT DecoderBuffer
}
// Indicates this buffer is part of a splice around |splice_timestamp_|.
- // Returns kNoTimestamp() if the buffer is not part of a splice.
+ // Returns kNoTimestamp if the buffer is not part of a splice.
base::TimeDelta splice_timestamp() const {
DCHECK(!end_of_stream());
return splice_timestamp_;
}
- // When set to anything but kNoTimestamp() indicates this buffer is part of a
+ // When set to anything but kNoTimestamp indicates this buffer is part of a
// splice around |splice_timestamp|.
void set_splice_timestamp(base::TimeDelta splice_timestamp) {
DCHECK(!end_of_stream());

Powered by Google App Engine
This is Rietveld 408576698