The fundamental problems we need to solve are:
- Window.requestAnimationFrame is not exposed in workers.
- commit() may not be synchronized with a browsing context graphics update, so we need a version of requestAnimationFrame that is independent from the browsing context.
I have prepared an initial proposal that we can use as a starting point for discussion: https://wiki.whatwg.org/wiki/OffscreenCanvas.requestAnimationFrame
Any thoughts?