Bug 264847 - SourceBufferPrivateClient/MediaSourcePrivateClient should use NativePromise
Summary: SourceBufferPrivateClient/MediaSourcePrivateClient should use NativePromise
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jean-Yves Avenard [:jya]
URL:
Keywords: InRadar
Depends on:
Blocks: 264134 264854
  Show dependency treegraph
 
Reported: 2023-11-14 16:53 PST by Jean-Yves Avenard [:jya]
Modified: 2023-12-06 20:28 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Yves Avenard [:jya] 2023-11-14 16:53:39 PST
By using NativePromise instead of callback, it makes it easier to control which thread the completion task should run on once the sub-task has completed.

As it is today, all of MSE can only run on the main thread.
Comment 1 Jean-Yves Avenard [:jya] 2023-11-14 17:01:06 PST
subtask of 264134
Comment 2 Radar WebKit Bug Importer 2023-11-14 17:01:31 PST
<rdar://problem/118426574>
Comment 3 Jean-Yves Avenard [:jya] 2023-11-14 17:29:24 PST
Pull request: https://github.com/WebKit/WebKit/pull/20513
Comment 4 EWS 2023-11-15 13:55:37 PST
Committed 270788@main (f15fc780c060): <https://commits.webkit.org/270788@main>

Reviewed commits have been landed. Closing PR #20513 and removing active labels.