Bug 217535

Summary: [Media in GPU Process] Move AudioSessionRoutingArbitratorProxy to the GPU process
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 223564    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch
eric.carlson: review+, ews-feeder: commit-queue-
Patch for landing
none
Patch for landing
ews-feeder: commit-queue-
Patch for landing none

Peng Liu
Reported 2020-10-09 14:06:10 PDT
Currently AudioSessionRoutingArbitratorProxy is in the UI process.
Attachments
Patch (40.43 KB, patch)
2021-03-24 13:47 PDT, Jer Noble
no flags
Patch (15.67 KB, patch)
2021-03-24 14:04 PDT, Jer Noble
no flags
Patch (40.51 KB, patch)
2021-03-24 14:04 PDT, Jer Noble
no flags
Patch (40.55 KB, patch)
2021-03-24 14:18 PDT, Jer Noble
eric.carlson: review+
ews-feeder: commit-queue-
Patch for landing (47.77 KB, patch)
2021-05-04 09:59 PDT, Jer Noble
no flags
Patch for landing (47.76 KB, patch)
2021-05-04 10:00 PDT, Jer Noble
ews-feeder: commit-queue-
Patch for landing (47.85 KB, patch)
2021-05-04 13:55 PDT, Jer Noble
no flags
Radar WebKit Bug Importer
Comment 1 2020-10-09 14:06:48 PDT
Jer Noble
Comment 2 2021-03-24 13:47:38 PDT
Peng Liu
Comment 3 2021-03-24 14:00:09 PDT
Comment on attachment 424177 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424177&action=review > Source/WebKit/ChangeLog:13 > + moved into WebCore to be used both there and in tihs new object. s/tihs/this/g. > Source/WebCore/platform/audio/mac/SharedRoutingArbitrator.h:53 > + bool isInRoutingArbitrationForToken(Token&); const Token&? > Source/WebCore/platform/audio/mac/SharedRoutingArbitrator.mm:123 > + ASSERT(isInRoutingArbitrationForToken(token)); Not a problem of this patch. Is it possible that this function is called when `m_setupArbitrationOngoing` is true? > Source/WebKit/GPUProcess/mac/LocalAudioSessionRoutingArbitrator.cpp:47 > + Nit. An empty line.
Jer Noble
Comment 4 2021-03-24 14:04:12 PDT
Jer Noble
Comment 5 2021-03-24 14:04:29 PDT
Jer Noble
Comment 6 2021-03-24 14:10:08 PDT
(In reply to Peng Liu from comment #3) > Comment on attachment 424177 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=424177&action=review > > > Source/WebKit/ChangeLog:13 > > + moved into WebCore to be used both there and in tihs new object. > > s/tihs/this/g. Whoops! Fixed. > > Source/WebCore/platform/audio/mac/SharedRoutingArbitrator.h:53 > > + bool isInRoutingArbitrationForToken(Token&); > > const Token&? Sure. > > Source/WebCore/platform/audio/mac/SharedRoutingArbitrator.mm:123 > > + ASSERT(isInRoutingArbitrationForToken(token)); > > Not a problem of this patch. Is it possible that this function is called > when `m_setupArbitrationOngoing` is true? The caller shouldn't end arbitration until the begin arbitration callback is complete. We do handle that case, however. > > Source/WebKit/GPUProcess/mac/LocalAudioSessionRoutingArbitrator.cpp:47 > > + > > Nit. An empty line. Removed.
Jer Noble
Comment 7 2021-03-24 14:18:01 PDT
Eric Carlson
Comment 8 2021-05-04 09:38:02 PDT
Comment on attachment 424181 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=424181&action=review r=me once the bots are happy > Source/WebKit/GPUProcess/GPUConnectionToWebProcess.cpp:204 > + , m_routingArbitrator(LocalAudioSessionRoutingArbitrator::create()) Is it possible to create this lazily? > Source/WebKit/GPUProcess/mac/LocalAudioSessionRoutingArbitrator.cpp:57 > + m_arbitrationUpdateTime = WallTime::now(); MonotonicTime? > Source/WebKit/GPUProcess/mac/LocalAudioSessionRoutingArbitrator.h:54 > + WallTime arbitrationUpdateTime() const { return m_arbitrationUpdateTime; } Ditto.
Jer Noble
Comment 9 2021-05-04 09:59:30 PDT
Created attachment 427679 [details] Patch for landing
Jer Noble
Comment 10 2021-05-04 10:00:48 PDT
Created attachment 427680 [details] Patch for landing
Jer Noble
Comment 11 2021-05-04 13:55:53 PDT
Created attachment 427697 [details] Patch for landing
EWS
Comment 12 2021-05-04 16:50:13 PDT
Committed r276993 (237316@main): <https://commits.webkit.org/237316@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 427697 [details].
Note You need to log in before you can comment on or make changes to this bug.