Skip to content

Commit

Permalink
Update interfaces/webgl1.idl (#15428)
Browse files Browse the repository at this point in the history
  • Loading branch information
autofoolip authored and Marcos Cáceres committed Jul 23, 2019
1 parent 84927ac commit a34280d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions interfaces/webgl1.idl
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ typedef unrestricted float GLclampf;
enum WebGLPowerPreference { "default", "low-power", "high-performance" };

dictionary WebGLContextAttributes {
GLboolean alpha = true;
GLboolean depth = true;
GLboolean stencil = false;
GLboolean antialias = true;
GLboolean premultipliedAlpha = true;
GLboolean preserveDrawingBuffer = false;
boolean alpha = true;
boolean depth = true;
boolean stencil = false;
boolean antialias = true;
boolean premultipliedAlpha = true;
boolean preserveDrawingBuffer = false;
WebGLPowerPreference powerPreference = "default";
GLboolean failIfMajorPerformanceCaveat = false;
boolean failIfMajorPerformanceCaveat = false;
};

[Exposed=(Window,Worker)]
Expand Down Expand Up @@ -84,7 +84,8 @@ typedef (ImageBitmap or
ImageData or
HTMLImageElement or
HTMLCanvasElement or
HTMLVideoElement) TexImageSource;
HTMLVideoElement or
OffscreenCanvas) TexImageSource;

typedef ([AllowShared] Float32Array or sequence<GLfloat>) Float32List;
typedef ([AllowShared] Int32Array or sequence<GLint>) Int32List;
Expand Down Expand Up @@ -510,7 +511,8 @@ interface mixin WebGLRenderingContextBase
const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
const GLenum BROWSER_DEFAULT_WEBGL = 0x9244;

[Exposed=Window] readonly attribute HTMLCanvasElement canvas;
[Exposed=Window] readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
[Exposed=Worker] readonly attribute OffscreenCanvas canvas;
readonly attribute GLsizei drawingBufferWidth;
readonly attribute GLsizei drawingBufferHeight;

Expand Down

0 comments on commit a34280d

Please sign in to comment.