RESOLVED FIXED 207007
Add GPU Process support for accessLog et al.
https://bugs.webkit.org/show_bug.cgi?id=207007
Summary Add GPU Process support for accessLog et al.
Tim Monroe
Reported 2020-01-30 10:47:35 PST
Add GPU process support for accessLog, errorLog, updateVideoFullscreenInlineImage, etc.
Attachments
Patch (13.44 KB, patch)
2020-01-30 10:51 PST, Tim Monroe
no flags
Patch (13.74 KB, patch)
2020-02-05 10:14 PST, Tim Monroe
no flags
Patch (13.74 KB, patch)
2020-02-25 08:49 PST, Tim Monroe
no flags
Tim Monroe
Comment 1 2020-01-30 10:51:34 PST
Simon Fraser (smfr)
Comment 2 2020-01-30 10:57:07 PST
Comment on attachment 389268 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=389268&action=review > Source/WebKit/GPUProcess/media/RemoteMediaPlayerManagerProxy.cpp:199 > +void RemoteMediaPlayerManagerProxy::updateVideoFullscreenInlineImage(MediaPlayerPrivateRemoteIdentifier id) Please don't use 'id'. It will cause compile errors if this file is ever made a .mm file. > Source/WebKit/GPUProcess/media/RemoteMediaPlayerManagerProxy.messages.in:40 > + AccessLog(WebKit::MediaPlayerPrivateRemoteIdentifier id) -> (String accessLog) Synchronous > + ErrorLog(WebKit::MediaPlayerPrivateRemoteIdentifier id) -> (String errorLog) Synchronous no id > Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.cpp:243 > +void RemoteMediaPlayerProxy::updateVideoFullscreenInlineImage(void) No need for void > Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:530 > + if (!connection().sendSync(Messages::RemoteMediaPlayerProxy::AccessLog(), Messages::RemoteMediaPlayerProxy::AccessLog::Reply(log), m_id)) Does this have to be synchronous IPC? We try to avoid that as much as possible.
Peng Liu
Comment 3 2020-01-30 11:33:40 PST
Comment on attachment 389268 [details] Patch Can we enable some layout tests in this patch?
Jer Noble
Comment 4 2020-01-30 11:52:38 PST
iOS bots are failing due to: /Volumes/Data/worker/iOS-13-Simulator-Build-EWS/build/Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:530:79: error: no member named 'AccessLog' in namespace 'Messages::RemoteMediaPlayerProxy'; did you mean 'Messages::RemoteMediaPlayerManagerProxy::AccessLog'? Looks like it's a simple fix; the message is defined on RemoteMediaPlayerManagerProxy, not RemoteMediaPlayerProxy.
Tim Monroe
Comment 5 2020-02-05 10:14:47 PST
Tim Monroe
Comment 6 2020-02-25 08:49:13 PST
Peng Liu
Comment 7 2020-02-25 10:12:50 PST
Comment on attachment 391655 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=391655&action=review > Source/WebKit/GPUProcess/media/RemoteMediaPlayerManagerProxy.messages.in:39 > + AccessLog(WebKit::MediaPlayerPrivateRemoteIdentifier playerIdentifier) -> (String accessLog) Synchronous Is it possible to use Async messages here?
Tim Monroe
Comment 8 2020-02-27 09:05:57 PST
I'm not sure how we would do this asynchronously. At any rate, my understanding of these two methods suggests that they would be called rarely, so perhaps the synchronous nature of the call will not be a real issue?
Simon Fraser (smfr)
Comment 9 2020-02-27 11:00:45 PST
(In reply to Tim Monroe from comment #8) > I'm not sure how we would do this asynchronously. At any rate, my > understanding of these two methods suggests that they would be called > rarely, so perhaps the synchronous nature of the call will not be a real > issue? It doesn't matter how rare they are. Any synchronous message can cause hangs in the calling process if the receiving process is busy.
Said Abou-Hallawa
Comment 10 2020-02-27 11:04:13 PST
(In reply to Simon Fraser (smfr) from comment #9) > (In reply to Tim Monroe from comment #8) > > I'm not sure how we would do this asynchronously. At any rate, my > > understanding of these two methods suggests that they would be called > > rarely, so perhaps the synchronous nature of the call will not be a real > > issue? > > It doesn't matter how rare they are. Any synchronous message can cause hangs > in the calling process if the receiving process is busy. Or the receiving process crashed.
WebKit Commit Bot
Comment 11 2020-02-27 11:14:36 PST
Comment on attachment 391655 [details] Patch Clearing flags on attachment: 391655 Committed r257577: <https://trac.webkit.org/changeset/257577>
WebKit Commit Bot
Comment 12 2020-02-27 11:14:38 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 13 2020-02-27 11:15:21 PST
Note You need to log in before you can comment on or make changes to this bug.