| Index: third_party/WebKit/Source/platform/audio/AudioDestination.h
|
| diff --git a/third_party/WebKit/Source/platform/audio/AudioDestination.h b/third_party/WebKit/Source/platform/audio/AudioDestination.h
|
| index bbf8426212d2fae5f7245f2588df59ab38a0722f..2f788427f394073a60e4189fb71bc528609bc8ec 100644
|
| --- a/third_party/WebKit/Source/platform/audio/AudioDestination.h
|
| +++ b/third_party/WebKit/Source/platform/audio/AudioDestination.h
|
| @@ -43,7 +43,7 @@ namespace blink {
|
| class PushPullFIFO;
|
| class SecurityOrigin;
|
| class WebAudioLatencyHint;
|
| -class WebThread;
|
| +class WebThreadSupportingGC;
|
|
|
| // The AudioDestination class is an audio sink interface between the media
|
| // renderer and the Blink's WebAudio module. It has a FIFO to adapt the
|
| @@ -76,13 +76,13 @@ class PLATFORM_EXPORT AudioDestination : public WebAudioDevice::RenderCallback {
|
|
|
| // The actual render request to the WebAudio destination node. This triggers
|
| // the WebAudio rendering pipe line on the web thread.
|
| - void RequestRenderOnWebThread(size_t frames_requested,
|
| - size_t frames_to_render,
|
| - double delay,
|
| - double delay_timestamp,
|
| - size_t prior_frames_skipped);
|
| + void RequestRenderOnWorkerThread(size_t frames_requested,
|
| + size_t frames_to_render,
|
| + double delay,
|
| + double delay_timestamp,
|
| + size_t prior_frames_skipped);
|
|
|
| - virtual void Start();
|
| + virtual void Start(WebThreadSupportingGC*);
|
| virtual void Stop();
|
|
|
| // Getters must be accessed from the main thread.
|
| @@ -115,7 +115,7 @@ class PLATFORM_EXPORT AudioDestination : public WebAudioDevice::RenderCallback {
|
| bool is_playing_;
|
|
|
| // Accessed by the device thread. Rendering thread for WebAudio graph.
|
| - std::unique_ptr<WebThread> rendering_thread_;
|
| + WebThreadSupportingGC* rendering_thread_;
|
|
|
| // Accessed by both threads: resolves the buffer size mismatch between the
|
| // WebAudio engine and the callback function from the actual audio device.
|
|
|