RESOLVED FIXED295704
Unnecessary calls to hasAvailableFrameCallback
https://bugs.webkit.org/show_bug.cgi?id=295704
Summary Unnecessary calls to hasAvailableFrameCallback
Jean-Yves Avenard [:jya]
Reported 2025-07-10 05:41:06 PDT
Currently, hasAvailableFrameCallback is called whenever we render a frame on screen with no exception. This callback is used for two purposes: 1- Let the MediaPlayerPrivate knows that the first frame has been decoded and rendered 2- When gathering frame metadata due to a call to requestVideoFrameCallback 1- is only required once after a flush 2- is only required if the JS has used requestVideoFrameCallback API. We could optimise the code to only call hasAvailableFrameCallback when needed only.
Attachments
Jean-Yves Avenard [:jya]
Comment 1 2025-07-10 06:02:10 PDT
Jean-Yves Avenard [:jya]
Comment 2 2025-07-10 06:04:19 PDT
EWS
Comment 3 2025-07-14 03:51:15 PDT
Committed 297330@main (d392a868cc16): <https://commits.webkit.org/297330@main> Reviewed commits have been landed. Closing PR #47820 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.