forked from whatwg/html
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add requestAnimationFrame() in workers
Fixes whatwg#3587. Based on the proposal at https://github.com/junov/OffscreenCanvasAnimation/blob/2e0546417d4f45d194270a67a1cdf303f2e0ef88/OffscreenCanvasAnimation.md. This introduces a new AnimationFrameProvider mixin interface to contain requestAnimationFrame() and cancelAnimationFrame(). It's included in Window and DedicatedWorkerGlobalScope. In addition to generalizing them to work on both objects, the two methods were rewritten editorially to be based on Infra primitives. This change also introduces the concept of updating the rendering of worker event loops.
- Loading branch information
1 parent
3d3c0ab
commit 3845569
Showing
1 changed file
with
150 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters