[whatwg] Adding features needed for WebGL to ImageBitmap

Tab Atkins Jr. jackalmage at gmail.com
Wed Jun 19 15:01:42 PDT 2013


On Wed, Jun 19, 2013 at 2:47 PM, Gregg Tavares <gman at google.com> wrote:
> If it was up to me I'd make createImageBitmap take on object with
> properties so that new options can be added later as in
>
>     createImageBitmap(src, callback, {
>        premultipliedAlpha: false,
>        colorspaceConversion: false,
>        x: 123,
>     });
>
> But I'm not familiar if there is a common way to make APIs take a options
> like this except for the XHR way which is to create a request, set
> properties on the request, and finally execute the request.

Passing an options object is the standard way.  Don't look to XHR for
*anything* about precedents.

~TJ



More information about the whatwg mailing list