W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] Hardware accelerated canvas

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 04 Sep 2012 13:35:04 -0400
Message-ID: <50463BC8.3020601@mit.edu>
To: Glenn Maynard <glenn@zewt.org>
Cc: whatwg@lists.whatwg.org
On 9/4/12 1:20 PM, Glenn Maynard wrote:
> The only reason I can think of switch renderers, instead of
> snapshotting, is to deal with losing the context *mid*-render, while a
> script is still drawing.  (That seems like a problem so rare as to be
> almost theoretical, though.)

The main reason to switch renderers instead of snapshotting is that if 
you default to software rendering and then upgrade to GPU you just need 
to take your buffer and dump it to the GPU, whereas if you snapshot you 
have to do a readback.

If the only thing around is the one canvas, they're probably not that 
different.  If there are other GPU ops going on, moving data to the GPU 
won't affect those as much as doing the readback, as I understand.  But 
maybe I understand wrong?

> That's another big assumption.  From what I understand, this is a
> regular occurance on mobile.

Yes, exactly.

-Boris
Received on Tuesday, 4 September 2012 17:35:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC