| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 PushPullFIFO_h | 5 #ifndef PushPullFIFO_h |
| 6 #define PushPullFIFO_h | 6 #define PushPullFIFO_h |
| 7 | 7 |
| 8 #include "platform/audio/AudioBus.h" | 8 #include "platform/audio/AudioBus.h" |
| 9 #include "platform/wtf/Allocator.h" |
| 9 #include "public/platform/WebCommon.h" | 10 #include "public/platform/WebCommon.h" |
| 10 #include "wtf/Allocator.h" | |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 // A configuration data container for PushPullFIFO unit test. | 14 // A configuration data container for PushPullFIFO unit test. |
| 15 struct PushPullFIFOStateForTest { | 15 struct PushPullFIFOStateForTest { |
| 16 const size_t fifoLength; | 16 const size_t fifoLength; |
| 17 const unsigned numberOfChannels; | 17 const unsigned numberOfChannels; |
| 18 const size_t framesAvailable; | 18 const size_t framesAvailable; |
| 19 const size_t indexRead; | 19 const size_t indexRead; |
| 20 const size_t indexWrite; | 20 const size_t indexWrite; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 size_t m_indexRead; | 76 size_t m_indexRead; |
| 77 size_t m_indexWrite; | 77 size_t m_indexWrite; |
| 78 | 78 |
| 79 unsigned m_overflowCount; | 79 unsigned m_overflowCount; |
| 80 unsigned m_underflowCount; | 80 unsigned m_underflowCount; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace blink | 83 } // namespace blink |
| 84 | 84 |
| 85 #endif // PushPullFIFO_h | 85 #endif // PushPullFIFO_h |
| OLD | NEW |