Bug 206468

Summary: [Media in GPU process] Pipe more MediaPlayerPrivate and client methods
Product: WebKit Reporter: Jon Lee <jonlee>
Component: MediaAssignee: Jon Lee <jonlee>
Status: RESOLVED FIXED    
Severity: Normal CC: calvaris, cdumez, commit-queue, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, jer.noble, peng.liu6, philipj, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Description Jon Lee 2020-01-17 23:58:31 PST
Pipe more MediaPlayerPrivate and client methods
Comment 1 Jon Lee 2020-01-18 00:25:44 PST
Created attachment 388136 [details]
Patch
Comment 2 Eric Carlson 2020-01-18 10:02:02 PST
Comment on attachment 388136 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=388136&action=review

> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxy.cpp:476
> +    m_webProcessConnection->send(Messages::RemoteMediaPlayerManager::CurrentPlaybackTargetIsWirelessChanged(m_id), 0);

HTMLMediaElement::mediaPlayerCurrentPlaybackTargetIsWirelessChanged immediately calls m_player->isCurrentPlaybackTargetWireless(), so we should push that state here and cache it in the MediaPlayerPrivateRemote.

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:684
> +    if (m_player)

m_player is never NULL.

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:942
> +    if (m_player)

Ditto.

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:948
> +    if (m_player)

Ditto.

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:954
> +    if (m_player)

Ditto.
Comment 3 Jon Lee 2020-01-18 16:50:30 PST
Created attachment 388162 [details]
Patch
Comment 4 Eric Carlson 2020-01-18 17:31:48 PST
Comment on attachment 388162 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=388162&action=review

Thanks!

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:815
> +    if (m_player)

This test is unnecessary.
Comment 5 Jon Lee 2020-01-19 21:32:58 PST
Comment on attachment 388162 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=388162&action=review

>> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:815
>> +    if (m_player)
> 
> This test is unnecessary.

Whoops, will remove.
Comment 6 Jon Lee 2020-01-22 15:13:25 PST
Created attachment 388474 [details]
Patch
Comment 7 Eric Carlson 2020-01-22 15:20:18 PST
Comment on attachment 388474 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=388474&action=review

> Source/WebKit/WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp:815
> +    if (m_player)

:-/
Comment 8 Jon Lee 2020-01-22 16:13:03 PST
Created attachment 388481 [details]
Patch
Comment 9 WebKit Commit Bot 2020-01-22 22:31:39 PST
Comment on attachment 388481 [details]
Patch

Clearing flags on attachment: 388481

Committed r254964: <https://trac.webkit.org/changeset/254964>
Comment 10 WebKit Commit Bot 2020-01-22 22:31:41 PST
All reviewed patches have been landed.  Closing bug.
Comment 11 Radar WebKit Bug Importer 2020-01-22 22:32:13 PST
<rdar://problem/58825046>