Restricted JS Execution Contexts: Difference between revisions

Describe UI workers
No edit summary
(Describe UI workers)
 
Line 8: Line 8:


For CSS Filter-ish use-cases, we want to be able to generate meshes by applying a JS function to vertices of a grid, mapping 2D points to 2D points.
For CSS Filter-ish use-cases, we want to be able to generate meshes by applying a JS function to vertices of a grid, mapping 2D points to 2D points.
== UI Workers ==
When the compositor is rendering a frame, it might want to call into a "UI worker" to apply Web-author generated effects that can't be implemented efficiently/smoothly on the main thread, e.g. computing new transform offsets for the rendering of particular elements.


== CSS Style Callbacks ==
== CSS Style Callbacks ==
1,295

edits