WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
205541
[Media in GPU process] Add remote media player configuration
https://bugs.webkit.org/show_bug.cgi?id=205541
Summary
[Media in GPU process] Add remote media player configuration
Eric Carlson
Reported
2019-12-21 10:44:42 PST
Add remote media player configuration for properties that won't change
Attachments
Patch
(18.06 KB, patch)
2019-12-21 13:39 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch
(23.17 KB, patch)
2019-12-21 14:02 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch for landing
(23.33 KB, patch)
2019-12-21 18:08 PST
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-12-21 10:44:54 PST
<
rdar://problem/58137418
>
Eric Carlson
Comment 2
2019-12-21 13:39:15 PST
Created
attachment 386303
[details]
Patch
Eric Carlson
Comment 3
2019-12-21 14:02:22 PST
Created
attachment 386304
[details]
Patch
Simon Fraser (smfr)
Comment 4
2019-12-21 15:23:58 PST
Comment on
attachment 386304
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386304&action=review
> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxyConfiguration.h:46 > + uint64_t logIdentifier; > + bool shouldUsePersistentCache; > + bool isVideo;
Maybe initialize these to be safe.
> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxyConfiguration.h:122 > + return {{ WTFMove(*mediaKeysStorageDirectory), WTFMove(*referrer), WTFMove(*userAgent), WTFMove(*sourceApplicationIdentifier), WTFMove(*networkInterfaceName), WTFMove(*mediaCacheDirectory), WTFMove(*mediaContentTypesRequiringHardwareSupport), WTFMove(*preferredAudioCharacteristics), WTFMove(*logIdentifier), WTFMove(*shouldUsePersistentCache), WTFMove(*isVideo), }};
I'd put each WTFMove on its own line.
> Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerManager.cpp:130 > + configuration.logIdentifier = reinterpret_cast<uint64_t>(player->mediaPlayerLogIdentifier());
Are these identifiers unique across all processes that share a GPU process?
Eric Carlson
Comment 5
2019-12-21 18:08:33 PST
Created
attachment 386307
[details]
Patch for landing
Eric Carlson
Comment 6
2019-12-21 18:11:00 PST
Comment on
attachment 386304
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=386304&action=review
>> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxyConfiguration.h:46 >> + bool isVideo; > > Maybe initialize these to be safe.
Good point, fixed.
>> Source/WebKit/GPUProcess/media/RemoteMediaPlayerProxyConfiguration.h:122 >> + return {{ WTFMove(*mediaKeysStorageDirectory), WTFMove(*referrer), WTFMove(*userAgent), WTFMove(*sourceApplicationIdentifier), WTFMove(*networkInterfaceName), WTFMove(*mediaCacheDirectory), WTFMove(*mediaContentTypesRequiringHardwareSupport), WTFMove(*preferredAudioCharacteristics), WTFMove(*logIdentifier), WTFMove(*shouldUsePersistentCache), WTFMove(*isVideo), }}; > > I'd put each WTFMove on its own line.
Done.
>> Source/WebKit/WebProcess/GPU/media/RemoteMediaPlayerManager.cpp:130 >> + configuration.logIdentifier = reinterpret_cast<uint64_t>(player->mediaPlayerLogIdentifier()); > > Are these identifiers unique across all processes that share a GPU process?
A media player's unique identifier is the same as the HTMLMediaElement that owns it, but each HTMLMediaElement has a unique ID.
WebKit Commit Bot
Comment 7
2019-12-21 19:08:37 PST
The commit-queue encountered the following flaky tests while processing
attachment 386307
[details]
: imported/w3c/web-platform-tests/IndexedDB/key-generators/reading-autoincrement-indexes-cursors.any.html
bug 205545
(author:
shvaikalesh@gmail.com
) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 8
2019-12-21 19:09:26 PST
Comment on
attachment 386307
[details]
Patch for landing Clearing flags on attachment: 386307 Committed
r253866
: <
https://trac.webkit.org/changeset/253866
>
WebKit Commit Bot
Comment 9
2019-12-21 19:09:28 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug