RESOLVED FIXED208568
Export NowPlaying commands to GPUProcess when media playing in GPUProcess is enabled
https://bugs.webkit.org/show_bug.cgi?id=208568
Summary Export NowPlaying commands to GPUProcess when media playing in GPUProcess is ...
youenn fablet
Reported 2020-03-04 01:51:19 PST
Export NowPlaying commands to GPUProcess when media playing inGPUProcess is enabled
Attachments
Patch (37.49 KB, patch)
2020-03-04 02:13 PST, youenn fablet
no flags
Patch (41.01 KB, patch)
2020-03-04 02:16 PST, youenn fablet
no flags
Patch (42.71 KB, patch)
2020-03-04 05:41 PST, youenn fablet
no flags
Patch (42.74 KB, patch)
2020-03-04 06:16 PST, youenn fablet
no flags
Patch (42.65 KB, patch)
2020-03-04 06:27 PST, youenn fablet
no flags
Patch (43.23 KB, patch)
2020-03-04 06:44 PST, youenn fablet
no flags
Patch (55.48 KB, patch)
2020-03-05 02:24 PST, youenn fablet
no flags
Patch for landing (55.44 KB, patch)
2020-03-05 03:08 PST, youenn fablet
no flags
youenn fablet
Comment 1 2020-03-04 02:13:07 PST
youenn fablet
Comment 2 2020-03-04 02:16:13 PST
youenn fablet
Comment 3 2020-03-04 05:41:24 PST
youenn fablet
Comment 4 2020-03-04 06:16:09 PST
youenn fablet
Comment 5 2020-03-04 06:27:06 PST
youenn fablet
Comment 6 2020-03-04 06:44:18 PST
youenn fablet
Comment 7 2020-03-04 11:07:36 PST
Eric Carlson
Comment 8 2020-03-04 12:08:09 PST
Comment on attachment 392409 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=392409&action=review r=me once the bots are happy > Source/WebCore/html/MediaElementSession.cpp:993 > + double currentTime = std::isfinite(m_element.currentTime()) && m_element.supportsSeeking() ? m_element.currentTime() : MediaPlayer::invalidTime(); Nit: m_element.currentTime() can be fairly expensive, so it would be good to cache it in a local instead of calling twice. > Source/WebCore/html/MediaElementSession.cpp:995 > + return NowPlayingInfo { m_element.mediaSessionTitle(), m_element.sourceApplicationIdentifier(), duration, currentTime, m_element.supportsSeeking(), m_element.mediaSessionUniqueIdentifier(), isPlaying, allowsNowPlayingControlsVisibility }; May as well also have a local for m_element.supportsSeeking() since it is used three times. > Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm:242 > + double rate = nowPlayingInfo.isPlaying ? 1 : 0; Nit: two spaces after '=' > Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm:276 > + // FIXME: Fix this layering violation. !!
youenn fablet
Comment 9 2020-03-05 02:24:13 PST
youenn fablet
Comment 10 2020-03-05 03:08:19 PST
Created attachment 392554 [details] Patch for landing
youenn fablet
Comment 11 2020-03-05 03:08:57 PST
Moved the bits from bug 208578 here instead.
WebKit Commit Bot
Comment 12 2020-03-05 03:53:42 PST
Comment on attachment 392554 [details] Patch for landing Clearing flags on attachment: 392554 Committed r257913: <https://trac.webkit.org/changeset/257913>
WebKit Commit Bot
Comment 13 2020-03-05 03:53:44 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14 2020-03-05 03:54:17 PST
Note You need to log in before you can comment on or make changes to this bug.