W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2013

Re: [whatwg] Canvas in workers

From: Justin Novosad <junov@google.com>
Date: Tue, 15 Oct 2013 17:19:26 -0400
Message-ID: <CABpaAqSRsstMGofpSE2rjV75pSwzunG6H53tvp6Ej=PNmSdonw@mail.gmail.com>
To: David Bruant <bruant.d@gmail.com>
Cc: WHATWG <whatwg@whatwg.org>, Kyle Huey <me@kylehuey.com>, Robert O'Callahan <robert@ocallahan.org>
On Sun, Oct 13, 2013 at 7:55 PM, David Bruant <bruant.d@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.
Received on Tuesday, 15 October 2013 21:19:52 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:12 UTC