Simplify code related to dispatchToRenderThread in WebAudio: 1. AudioDestination::start() now always gets called with a non-null dispatchToRenderThread lambda. In the case where there is no AudioWorkletThread to dispatch to, the lambda simply calls its task synchronously. 2. For Cocoa ports, make it so that only AudioDestinationCocoa needs to worry about the dispatchToRenderThread lambda. The dispatchToRenderThread lambda is no longer exposed to subclasses such as MockAudioDestinationCocoa & RemoteAudioDestinationProxy.
Created attachment 416452 [details] Patch
Created attachment 416458 [details] Patch
Created attachment 416459 [details] Patch
Created attachment 416460 [details] Patch
Created attachment 416461 [details] Patch
Comment on attachment 416461 [details] Patch r=me
Committed r270947: <https://trac.webkit.org/changeset/270947> All reviewed patches have been landed. Closing bug and clearing flags on attachment 416461 [details].
<rdar://problem/72441076>