Bug 217969

Summary: [Media in GPU Process] Reduce the number of RequestBuffer IPC messages for AudioDestination
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: Web AudioAssignee: Peng Liu <peng.liu6>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: cdumez, eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=219715

Description Peng Liu 2020-10-20 10:34:44 PDT
Currently, for every rendering request (to render 128 samples) from the audio output unit, RemoteAudioDestination::render() sends an IPC message RemoteAudioDestinationProxy::RequestBuffer to RemoteAudioDestinationProxy in the Web process. That is unnecessary and inefficient. Since RemoteAudioDestination and RemoteAudioDestinationProxy use a ring buffer to transfer audio samples, we can "combine" multiple rendering requests in one IPC message. Hopefully, that will significantly reduce the number of IPC messages.
Comment 1 Radar WebKit Bug Importer 2020-10-27 10:35:15 PDT
<rdar://problem/70728404>
Comment 2 Peng Liu 2020-12-16 13:52:32 PST

*** This bug has been marked as a duplicate of bug 219818 ***