| Index: webrtc/modules/audio_processing/processing_component.h
|
| diff --git a/webrtc/modules/audio_processing/processing_component.h b/webrtc/modules/audio_processing/processing_component.h
|
| index 8ee3ac6c7dbf9db09d7f08fb85d8aeb5dbda6188..291aea39224f496f6cd14a1ef2de958349f987e5 100644
|
| --- a/webrtc/modules/audio_processing/processing_component.h
|
| +++ b/webrtc/modules/audio_processing/processing_component.h
|
| @@ -17,6 +17,22 @@
|
|
|
| namespace webrtc {
|
|
|
| +// Functor to use when supplying a verifier function for the queue item
|
| +// verifcation.
|
| +template <typename T>
|
| +class RenderQueueItemVerifier {
|
| + public:
|
| + explicit RenderQueueItemVerifier(size_t minimum_capacity)
|
| + : minimum_capacity_(minimum_capacity) {}
|
| +
|
| + bool operator()(const std::vector<T>& v) const {
|
| + return v.capacity() >= minimum_capacity_;
|
| + }
|
| +
|
| + private:
|
| + size_t minimum_capacity_;
|
| +};
|
| +
|
| class ProcessingComponent {
|
| public:
|
| ProcessingComponent();
|
|
|