[whatwg] Offscreen canvas (or canvas for web workers).

On Wed, 24 Feb 2010 16:45:44 +0100, Andrew Grieve <agrieve at google.com>  
wrote:
> How would you do #2 efficiently? If you used toDataUr*l*(), then you  
> have to
> encode a png on one side and then decode the png on the main thread. I  
> think
> we might want to add some sort of API for blitting directly from an
> offscreen canvas to an onscreen one. Perhaps via a canvas ID.

postMessage() supports ImageData so you could use that.


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Wednesday, 24 February 2010 07:53:45 UTC