Re: [w3ctag/design-reviews] OffscreenCanvas new commit() and DedicatedWorker.requestAnimationFrame (#288)

As an early heads-up, Chromium is prototyping an alternate solution to commit(). As was pointed out here, commit() really only solves the problem of rendering graphics from a WebAssembly thread, and doesn't handle interoperability with other web APIs.

The basic idea is to allow WebAssembly (or other web APIs) to run a nested message loop which will exit in a bounded period of time. A call to this API would be inserted in the outer loop of the pthread's main function. This makes it practical for WebAssembly threads to use requestAnimationFrame without doing large code refactorings. These threads could also then handle postMessage requests, etc.

We're still working through bugs in Chromium's implementation of this before requesting feedback more broadly, but feel free to follow along and comment on http://crbug.com/869569 and https://chromium-review.googlesource.com/1200409 .


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/288#issuecomment-418527773

Received on Tuesday, 4 September 2018 21:43:13 UTC