Commit d8fa0cc3 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Switch WebRtcAudioDeviceImpl away from std::vector

... to use WTF::Vector instead.

BUG=923394
R=guidou@chromium.org

Change-Id: I08ddf7cbaac201f8b6e93aa1f4ba1addbc55f3d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1970133Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#726155}
parent 0c824a81
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
#include <list> #include <list>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector>
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/scoped_refptr.h" #include "base/memory/scoped_refptr.h"
...@@ -19,6 +18,7 @@ ...@@ -19,6 +18,7 @@
#include "third_party/blink/renderer/modules/modules_export.h" #include "third_party/blink/renderer/modules/modules_export.h"
#include "third_party/blink/renderer/modules/webrtc/webrtc_audio_device_not_impl.h" #include "third_party/blink/renderer/modules/webrtc/webrtc_audio_device_not_impl.h"
#include "third_party/blink/renderer/platform/webrtc/webrtc_source.h" #include "third_party/blink/renderer/platform/webrtc/webrtc_source.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
// A WebRtcAudioDeviceImpl instance implements the abstract interface // A WebRtcAudioDeviceImpl instance implements the abstract interface
// webrtc::AudioDeviceModule which makes it possible for a user (e.g. webrtc:: // webrtc::AudioDeviceModule which makes it possible for a user (e.g. webrtc::
...@@ -187,9 +187,7 @@ class MODULES_EXPORT WebRtcAudioDeviceImpl ...@@ -187,9 +187,7 @@ class MODULES_EXPORT WebRtcAudioDeviceImpl
// Buffer used for temporary storage during render callback. // Buffer used for temporary storage during render callback.
// It is only accessed by the audio render thread. // It is only accessed by the audio render thread.
// Vector<int16_t> render_buffer_;
// TODO(crbug.com/923394): Replace std::vector by WTF::Vector.
std::vector<int16_t> render_buffer_;
// The output device used for echo cancellation // The output device used for echo cancellation
// //
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment