[whatwg] Adding features needed for WebGL to ImageBitmap

Ian Hickson ian at hixie.ch
Wed Jul 10 17:07:48 PDT 2013


On Wed, 10 Jul 2013, Kenneth Russell wrote:
> 
> ImageBitmap can cleanly address all of the desired use cases simply by 
> adding an optional dictionary of options.

I don't think that's true. The options only make sense for WebGL -- 
flipping which pixel is the first pixel, for example, doesn't do anything 
to 2D canvas, which works at a higher level.

(The other two options don't make much sense to me even for GL. If you 
don't want a color space, don't set one. If you don't want an alpha 
channel, don't set one. You control the image, after all.)


> I suspect that in the future some options will be desired even for the 
> 2D canvas use case, and having the dictionary already specified will 
> make that easier. There is no need to invent a new primitive and means 
> of loading it.

If options make sense for 2D canvas, then having ImageBitmap options would 
make sense, sure.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list