W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

Re: [whatwg] Hardware accelerated canvas

From: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Date: Tue, 4 Sep 2012 23:26:15 +0300
Message-ID: <CAJhzemUz8khKeomkFumhZxtDGUMCMpbUNJAiEAXUaVb9D55-8w@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: whatwg@lists.whatwg.org
I'm just wondering if there's a way to detect if the canvas was made with
the purpose of drawing a static image.

On providing a better way for those single shot canvases to make sure that
the image is preserved, I think one way would be to add a complementing
method to toDataURL(), being toBlobURL(). This has the advantage that the
Blob URL could act as a cross-origin resource if non-CORS-enabled resources
were made to draw the canvas, whereas toDataURL() will just throw a
security exception. The Blob URL could still be used to serve an image tag
on the page.


On Tue, Sep 4, 2012 at 11:03 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 9/4/12 3:31 PM, Jussi Kalliokoski wrote:
>> Hmm... Is it visible to the page outside getContext() ?
> No.  Why does that matter?
> -Boris
Received on Tuesday, 4 September 2012 20:26:49 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:45 UTC