Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestAnimationFrame in WorkerGlobalScope #222

Closed
svoisen opened this issue Oct 14, 2022 · 4 comments
Closed

requestAnimationFrame in WorkerGlobalScope #222

svoisen opened this issue Oct 14, 2022 · 4 comments
Labels
accepted An accepted proposal focus-area-proposal Focus Area Proposal

Comments

@svoisen
Copy link

svoisen commented Oct 14, 2022

Description

Allows use of requestAnimationFrame in web workers.

Currently this is unsupported in WebKit.

Rationale

This is necessary for any applications that wish to perform tasks such as animation rendering off the main thread, perhaps in conjunction with OffscreenCanvas.

Specification

https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#dom-animationframeprovider-requestanimationframe

Tests

https://wpt.fyi/results/workers/WorkerGlobalScope_requestAnimationFrame.tentative.worker.html

@svoisen svoisen added the focus-area-proposal Focus Area Proposal label Oct 14, 2022
@foolip foolip moved this to Proposed in Interop 2023 Oct 16, 2022
@foolip
Copy link
Member

foolip commented Oct 17, 2022

I see that the test here is tentative. @Ms2ger you added this in web-platform-tests/wpt#12293, do you know if it still needs to be tentative?

@Ms2ger
Copy link

Ms2ger commented Oct 17, 2022

Looks like the spec change merged in whatwg/html#3677 (Aug 27, 2018) and I marked it as tentative on Aug 3, 2018, so we'd only be four years late marking it not tentative

@gsnedders
Copy link
Member

Rationale

This is necessary for any applications that wish to perform tasks such as animation rendering off the main thread, perhaps in conjunction with OffscreenCanvas.

You say "perhaps", but is there any use-case for this without OffscreenCanvas?

@foolip foolip added the accepted An accepted proposal label Feb 1, 2023
@foolip
Copy link
Member

foolip commented Feb 1, 2023

Thank you for proposing requestAnimationFrame in WorkerGlobalScope for inclusion in Interop 2023.

We are pleased to let you know that this proposal was accepted as part of the Offscreen Canvas focus area. You can follow the progress of this Focus Area on the Interop 2023 dashboard.

For an overview of our process, see the proposal selection summary. Thank you for contributing to Interop 2023!

Posted on behalf of the Interop team.

@foolip foolip closed this as completed Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted An accepted proposal focus-area-proposal Focus Area Proposal
Projects
No open projects
Status: Proposed
Development

No branches or pull requests

4 participants