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 a0712066e27d8fd913f0c893eb25a3f460e8c875..49133353b11e19726814b78044b60b6567ca7665 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. |