Re: [whatwg] Hardware accelerated canvas

On 9/4/12 12:43 PM, Boris Zbarsky wrote:
> 1)  Have a way for pages to opt in to software rendering.
> 2)  Opt canvases in to software rendering via some sort of heuristic
>      (e.g. software by default until there has been drawing to it for
>      several event loop iterations, or whatever).
> 3)  Have a way for pages to opt in to having snapshots taken.
> 4)  Auto-snapshot based on some heuristics.
> 5)  Save command stream.
> 6)  Have a way for pages to explicitly snapshot a canvas.
> 7)  Require opt in for hardware accelerated rendering.
>
> Any others?

Ms2ger points out (without endorsing) that there's an:

8)  Have every author who wants their canvas to stick around call 
toDataURL() and stick the result in an <img src>.

This is much like #6 above, except with more pain and suffering and 
memory usage and whatnot, but does mean that there is precedent in the 
platform for #6...

-Boris

Received on Tuesday, 4 September 2012 16:53:51 UTC