[whatwg] Adding features needed for WebGL to ImageBitmap

Peter Kasting pkasting at google.com
Wed Jul 10 17:13:07 PDT 2013

On Wed, Jul 10, 2013 at 5:07 PM, Ian Hickson <ian at hixie.ch> wrote:

> (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 only have a small amount of graphics experience, but I don't think that
latter comment is right, at least.

At least for the alpha channel, as Gregg already wrote, a lot of GL
algorithms use that data for something per-pixel that's not "alpha"
(generally some other kind of per-pixel map).  It's not appropriate for the
browser to assume that it's safe to muck with the values there.  Fixing
this by instead trying to pass these values separate from the rest of the
pixel data is inefficient as well as just weird from the perspective of
anyone with significant experience in using these sorts of algorithms.


More information about the whatwg mailing list