Commit 34439e65 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Switch webaudio_media_stream_source.cc away from base::Bind

BUG=704136
R=guidou@chromium.org

Change-Id: I195032171c887cb82a3254a1b639a70feb67b71d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1947987
Auto-Submit: Antonio Gomes <tonikitoo@igalia.com>
Reviewed-by: default avatarGuido Urdaneta <guidou@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#722442}
parent be8389a4
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include <utility> #include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h" #include "base/bind_helpers.h"
#include "base/logging.h" #include "base/logging.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_functional.h"
namespace blink { namespace blink {
...@@ -17,8 +17,9 @@ WebAudioMediaStreamSource::WebAudioMediaStreamSource( ...@@ -17,8 +17,9 @@ WebAudioMediaStreamSource::WebAudioMediaStreamSource(
scoped_refptr<base::SingleThreadTaskRunner> task_runner) scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: MediaStreamAudioSource(std::move(task_runner), false /* is_remote */), : MediaStreamAudioSource(std::move(task_runner), false /* is_remote */),
is_registered_consumer_(false), is_registered_consumer_(false),
fifo_(base::Bind(&WebAudioMediaStreamSource::DeliverRebufferedAudio, fifo_(ConvertToBaseRepeatingCallback(CrossThreadBindRepeating(
base::Unretained(this))), &WebAudioMediaStreamSource::DeliverRebufferedAudio,
WTF::CrossThreadUnretained(this)))),
blink_source_(*blink_source) { blink_source_(*blink_source) {
DVLOG(1) << "WebAudioMediaStreamSource::WebAudioMediaStreamSource()"; DVLOG(1) << "WebAudioMediaStreamSource::WebAudioMediaStreamSource()";
} }
......
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