|
Lines 1-3
a/Source/WebKit/ChangeLog_sec1
|
|
|
1 |
2021-10-12 Kimmo Kinnunen <kkinnunen@apple.com> |
| 2 |
|
| 3 |
WebGL video texture upload is very slow due to excessive transfer of the video pixel buffer |
| 4 |
https://bugs.webkit.org/show_bug.cgi?id=231425 |
| 5 |
|
| 6 |
Reviewed by Youenn Fablet. |
| 7 |
|
| 8 |
Typical WebGL content requests the videos to be uploaded to a texture |
| 9 |
once per render loop update, even though the video has not changed. |
| 10 |
The video pixel buffer is slow to transfer across IPC. It should be transferred |
| 11 |
only when it has changed. |
| 12 |
|
| 13 |
MediaPlayerPrivateAVFoundationObjC and MediaPlayerPrivateMediaSourceAVFObjC hold |
| 14 |
the last requested pixel buffer ref. They will update it or discard it only |
| 15 |
when pixelBufferForCurrentTime() is called. |
| 16 |
|
| 17 |
Cache the pixel buffer to MediaPlayerPrivateRemote (GPUP side proxy) |
| 18 |
Cache the pixel buffer to RemoteMediaPlayerProxy (WebP side proxy) |
| 19 |
|
| 20 |
The caches increase the total memory use only during the duration |
| 21 |
of the call, since after the ref has been updated, it refers |
| 22 |
to the one always held in the original objects (MediaPlayerPrivateAVFoundationObjC |
| 23 |
and MediaPlayerPrivateMediaSourceAVFObjC) |
| 24 |
|
| 25 |
No new tests, fixes a perf regression wrt GPUP media. |
| 26 |
|
| 27 |
* GPUProcess/media/RemoteMediaPlayerProxy.cpp: |
| 28 |
(WebKit::RemoteMediaPlayerProxy::invalidate): |
| 29 |
* GPUProcess/media/RemoteMediaPlayerProxy.h: |
| 30 |
* GPUProcess/media/RemoteMediaPlayerProxy.messages.in: |
| 31 |
* GPUProcess/media/cocoa/RemoteMediaPlayerProxyCocoa.mm: |
| 32 |
(WebKit::RemoteMediaPlayerProxy::nativeImageForCurrentTime): |
| 33 |
(WebKit::RemoteMediaPlayerProxy::pixelBufferForCurrentTimeIfChanged): |
| 34 |
(WebKit::RemoteMediaPlayerProxy::pixelBufferForCurrentTime): Deleted. |
| 35 |
* WebProcess/GPU/media/MediaPlayerPrivateRemote.h: |
| 36 |
* WebProcess/GPU/media/cocoa/MediaPlayerPrivateRemoteCocoa.mm: |
| 37 |
(WebKit::MediaPlayerPrivateRemote::pixelBufferForCurrentTime): |
| 38 |
|
| 1 |
2021-10-12 Per Arne Vollan <pvollan@apple.com> |
39 |
2021-10-12 Per Arne Vollan <pvollan@apple.com> |
| 2 |
|
40 |
|
| 3 |
[iOS][GPUP] Remove sandbox access to com.apple.audio.AudioComponentRegistrar |
41 |
[iOS][GPUP] Remove sandbox access to com.apple.audio.AudioComponentRegistrar |