Chromium Code Reviews| Index: media/base/video_decoder_config.h |
| diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h |
| index 3cc33d927158a5c279c2e91b0e5dbd9aad6467e1..b57877d4d403eaeed263a37eb3ffbf5f607b9380 100644 |
| --- a/media/base/video_decoder_config.h |
| +++ b/media/base/video_decoder_config.h |
| @@ -81,7 +81,8 @@ class MEDIA_EXPORT VideoDecoderConfig { |
| const gfx::Rect& visible_rect, |
| const gfx::Size& natural_size, |
| const uint8* extra_data, size_t extra_data_size, |
| - bool is_encrypted); |
| + bool is_encrypted, |
| + bool low_delay); |
| ~VideoDecoderConfig(); |
| @@ -94,6 +95,7 @@ class MEDIA_EXPORT VideoDecoderConfig { |
| const gfx::Size& natural_size, |
| const uint8* extra_data, size_t extra_data_size, |
| bool is_encrypted, |
| + bool low_delay, |
| bool record_stats); |
| // Returns true if this object has appropriate configuration values, false |
| @@ -135,6 +137,9 @@ class MEDIA_EXPORT VideoDecoderConfig { |
| // can be encrypted or not encrypted. |
| bool is_encrypted() const; |
| + // Indicates that the decoder should minimized delay (e.g. for a live stream). |
| + bool low_delay() const; |
|
Sergey Ulanov
2014/04/24 02:55:14
Can we make individual fields mutable? (i.e. add s
|
| + |
| private: |
| VideoCodec codec_; |
| VideoCodecProfile profile_; |
| @@ -149,6 +154,8 @@ class MEDIA_EXPORT VideoDecoderConfig { |
| bool is_encrypted_; |
| + bool low_delay_; |
| + |
| // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler |
| // generated copy constructor and assignment operator. Since the extra data is |
| // typically small, the performance impact is minimal. |