Re: [whatwg] ImageBitmap feature requests

2014-05-21 Thread Anne van Kesteren
On Tue, May 20, 2014 at 10:01 PM, Justin Novosad wrote: > I wonder what kind of broader effect it would have if image content can no > longer be uniquely identified or retrieved using a URL. In many places in > Blink/WebKit (and presumably other implementations as well) URLs are used as > keys and

Re: [whatwg] ImageBitmap feature requests

2014-05-20 Thread K. Gadd
Well, you could assign a unique sequential identifier or GUID to ImageBitmaps, like object URLs, as long as you remove the lifetime relationship where the object has to be manually freed. That would let you do some of those caching scenarios, the key is that the lifetime is now managed by 'do any e

Re: [whatwg] ImageBitmap feature requests

2014-05-20 Thread Justin Novosad
On Sun, May 18, 2014 at 11:02 PM, Robert O'Callahan wrote: > On Sat, May 17, 2014 at 4:18 AM, Anne van Kesteren wrote: > >> Maybe we should have .srcObject similar to what we're doing for >> media elements. .src can simply return about:imagebitmap or some >> such. That way you can also assign a Bl

Re: [whatwg] ImageBitmap feature requests

2014-05-18 Thread Robert O'Callahan
On Sat, May 17, 2014 at 4:18 AM, Anne van Kesteren wrote: > Maybe we should have .srcObject similar to what we're doing for > media elements. .src can simply return about:imagebitmap or some > such. That way you can also assign a Blob to an element without > having to do the weird createObjectUR

Re: [whatwg] ImageBitmap feature requests

2014-05-17 Thread Anne van Kesteren
On Fri, May 16, 2014 at 7:47 PM, Justin Novosad wrote: > On Fri, May 9, 2014 at 5:51 PM, Ian Hickson wrote: >> This is an interesting idea. I don't know what the state of the other >> methods discussed here is (see my comment at the top of the e-mail cited >> above). However, I've filed a bug for

Re: [whatwg] ImageBitmap feature requests

2014-05-16 Thread Justin Novosad
On Fri, May 9, 2014 at 5:51 PM, Ian Hickson wrote: > On Thu, 18 Jul 2013, Justin Novosad wrote: > > > However, one weakness of the current API is that upon construction of > > the ImageBitmap, the browser does not know whether the asset will be > > used with a GPU-accelerated rendering context or

[whatwg] ImageBitmap feature requests

2014-05-09 Thread Ian Hickson
On Thu, 18 Jul 2013, Justin Novosad wrote: > On Thu, Jul 18, 2013 at 12:50 PM, Ian Hickson wrote: > > On Wed, 9 Jan 2013, Ashley Gullen wrote: > > > > > > Some developers are starting to design large scale games using our > > > HTML5 game engine, and we're finding we're running in to memory > >