On Sun, Oct 13, 2013 at 7:55 PM, David Bruant <bruan...@gmail.com> wrote:
> > Not directly related, but I imagine requestAnimationFrame doesn't work in > a worker. How can a script know when to stop drawing on a given canvas? > > rAF doesn't work in a worker, but that is easy to work around. You can have a rAF handler on the main thread that propagates the signal to your workers by posting a "rAF" message to them.