Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.h

Issue 2793593002: AudioWorklet prototype
Patch Set: Merge changes, AudioParam bug fix Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698