| 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 "base/macros.h" |
| 8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 10 #include "media/base/audio_timestamp_helper.h" | 11 #include "media/base/audio_timestamp_helper.h" |
| 11 #include "media/base/decoder_buffer.h" | 12 #include "media/base/decoder_buffer.h" |
| 12 #include "media/base/media_export.h" | 13 #include "media/base/media_export.h" |
| 13 #include "media/base/timestamp_constants.h" | 14 #include "media/base/timestamp_constants.h" |
| 14 | 15 |
| 15 namespace media { | 16 namespace media { |
| 16 | 17 |
| 17 class AudioBuffer; | 18 class AudioBuffer; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // from the next buffer. The index at which to start discarding is calculated | 97 // from the next buffer. The index at which to start discarding is calculated |
| 97 // by subtracting |delayed_end_discard_| from |decoder_delay_|. | 98 // by subtracting |delayed_end_discard_| from |decoder_delay_|. |
| 98 size_t delayed_end_discard_; | 99 size_t delayed_end_discard_; |
| 99 | 100 |
| 100 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioDiscardHelper); | 101 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioDiscardHelper); |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 } // namespace media | 104 } // namespace media |
| 104 | 105 |
| 105 #endif // MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ | 106 #endif // MEDIA_BASE_AUDIO_DISCARD_HELPER_H_ |
| OLD | NEW |