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

Anne van Kesteren annevk at opera.com
Wed Feb 24 07:53:45 PST 2010


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/



More information about the whatwg mailing list