OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ | 5 #ifndef MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ |
6 #define MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ | 6 #define MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/macros.h" | 10 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
10 #include "base/time/time.h" | 12 #include "base/time/time.h" |
11 #include "media/base/audio_timestamp_helper.h" | 13 #include "media/base/audio_timestamp_helper.h" |
12 #include "media/base/decoder_buffer.h" | 14 #include "media/base/decoder_buffer.h" |
13 #include "media/base/media_export.h" | 15 #include "media/base/media_export.h" |
14 #include "media/base/timestamp_constants.h" | 16 #include "media/base/timestamp_constants.h" |
15 | 17 |
16 namespace media { | 18 namespace media { |
17 | 19 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // from the next buffer. The index at which to start discarding is calculated | 99 // from the next buffer. The index at which to start discarding is calculated |
98 // by subtracting |delayed_end_discard_| from |decoder_delay_|. | 100 // by subtracting |delayed_end_discard_| from |decoder_delay_|. |
99 size_t delayed_end_discard_; | 101 size_t delayed_end_discard_; |
100 | 102 |
101 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioDiscardHelper); | 103 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioDiscardHelper); |
102 }; | 104 }; |
103 | 105 |
104 } // namespace media | 106 } // namespace media |
105 | 107 |
106 #endif // MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ | 108 #endif // MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ |
OLD | NEW |