Re: Image.toBlob()

On Thu, Feb 2, 2012 at 4:24 PM, Anne van Kesteren <annevk@opera.com> wrote:

> On Sat, 28 Jan 2012 09:27:08 +0100, Bronislav Klučka <
> Bronislav.Klucka@bauglir.com> wrote:
>
>> would it be possible to have Image.toBlob() function? We are introducing
>> Canvas.toBlob(), image (and maybe video, audio) would be nice addition
>>
>
> Are the additional resource required to drawing the image on <canvas>
> first a bottleneck?
>

As long as the canvas isn't inserted into a document (eg. it doesn't have
to be composited), I'd think browsers could optimize this case
transparently, without adding additional API (eg. avoid the backbuffer
allocation and surface copy).

-- 
Glenn Maynard

Received on Thursday, 2 February 2012 22:33:01 UTC