mirror of
https://github.com/servo/servo.git
synced 2025-08-26 23:58:20 +01:00
webgl: Update IDL exposed members (#33509)
* Update IDLs to expose on Workers Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update usage of Canvas/OffscreenCanvas union, add label Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update WPT expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Fix match arm Signed-off-by: Daniel Adams <msub2official@gmail.com> * Add missing spec links Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update expectations Signed-off-by: Daniel Adams <msub2official@gmail.com> * Update interfaces.worker.js Signed-off-by: Daniel Adams <msub2official@gmail.com> --------- Signed-off-by: Daniel Adams <msub2official@gmail.com>
This commit is contained in:
parent
8276673bae
commit
3a0d27b231
22 changed files with 117 additions and 4772 deletions
|
@ -6,7 +6,7 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLActiveInfo {
|
||||
readonly attribute GLint size;
|
||||
readonly attribute GLenum type;
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.4
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLBuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLFramebuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.3
|
||||
//
|
||||
|
||||
[Abstract, Exposed=Window]
|
||||
[Abstract, Exposed=(Window,Worker)]
|
||||
interface WebGLObject {
|
||||
attribute USVString label;
|
||||
};
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.6
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLProgram : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.5
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLRenderbuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -43,7 +43,7 @@ dictionary WebGLContextAttributes {
|
|||
GLboolean failIfMajorPerformanceCaveat = false;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface mixin WebGLRenderingContextBase
|
||||
{
|
||||
|
||||
|
@ -465,7 +465,7 @@ interface mixin WebGLRenderingContextBase
|
|||
const GLenum UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
|
||||
const GLenum BROWSER_DEFAULT_WEBGL = 0x9244;
|
||||
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
|
||||
readonly attribute GLsizei drawingBufferWidth;
|
||||
readonly attribute GLsizei drawingBufferHeight;
|
||||
|
||||
|
@ -680,7 +680,7 @@ interface mixin WebGLRenderingContextOverloads
|
|||
undefined uniformMatrix4fv(WebGLUniformLocation? location, GLboolean transpose, Float32List value);
|
||||
};
|
||||
|
||||
[Exposed=(Window)]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLRenderingContext
|
||||
{
|
||||
};
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLShader : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLShaderPrecisionFormat {
|
||||
readonly attribute GLint rangeMin;
|
||||
readonly attribute GLint rangeMax;
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/#5.9
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLTexture : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.10
|
||||
//
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLUniformLocation {
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue