[whatwg] Canvas as an object

nullv at gmx.com nullv at gmx.com
Fri Mar 30 07:38:55 PDT 2012

> > My suggestion is, considering that the Canvas element can be used for > > offscreen rendering etc shouldn't it be allowed it create an object of such > > from within Worker like we can do with Image? > > > It's been wanted for a while, but there's a lot of work needed to make it > possible, so it probably won't happen soon. > If you only need to analyze the pixels of video data, however, you can > render the video frame to a canvas, call canvas.getImageData(), and send > the Uint8ClampedArray of the result to the worker. You can't use Canvas > drawing features this way, but if you only need to examine pixels, this > works. This might work. although i was hoping to avoid the bottle neck of the single thread in the main page. Thanks Glen

More information about the whatwg mailing list