mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #13493 - scotttrinh:webgl-idl, r=jdm
Partial fix for #12415: expose WebGL interfaces <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes partially fix #12415 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they do not add any features <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13493) <!-- Reviewable:end -->
This commit is contained in:
commit
a466f43fe5
13 changed files with 2 additions and 25 deletions
|
@ -6,7 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLActiveInfo {
|
||||
readonly attribute GLint size;
|
||||
readonly attribute GLenum type;
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.4
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLBuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.15
|
||||
[Constructor(DOMString type, optional WebGLContextEventInit eventInit), Exposed=(Window,Worker)]
|
||||
[Constructor(DOMString type, optional WebGLContextEventInit eventInit)]
|
||||
interface WebGLContextEvent : Event {
|
||||
readonly attribute DOMString statusMessage;
|
||||
};
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLFramebuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.3
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.6
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLProgram : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.5
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLRenderbuffer : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -41,7 +41,7 @@ dictionary WebGLContextAttributes {
|
|||
GLboolean failIfMajorPerformanceCaveat = false;
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
[NoInterfaceObject]
|
||||
interface WebGLRenderingContextBase
|
||||
{
|
||||
|
||||
|
@ -762,7 +762,6 @@ interface WebGLRenderingContextBase
|
|||
void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLRenderingContext
|
||||
{
|
||||
};
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLShader : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.7
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLShaderPrecisionFormat {
|
||||
readonly attribute GLint rangeMin;
|
||||
readonly attribute GLint rangeMax;
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/#5.9
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLTexture : WebGLObject {
|
||||
};
|
||||
|
|
|
@ -6,6 +6,5 @@
|
|||
// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.10
|
||||
//
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLUniformLocation {
|
||||
};
|
||||
|
|
|
@ -106,18 +106,6 @@ test_interfaces([
|
|||
"URL",
|
||||
"URLSearchParams",
|
||||
"ValidityState",
|
||||
"WebGLRenderingContext",
|
||||
"WebGLUniformLocation",
|
||||
"WebGLBuffer",
|
||||
"WebGLContextEvent",
|
||||
"WebGLFramebuffer",
|
||||
"WebGLRenderbuffer",
|
||||
"WebGLTexture",
|
||||
"WebGLProgram",
|
||||
"WebGLShader",
|
||||
"WebGLObject",
|
||||
"WebGLActiveInfo",
|
||||
"WebGLShaderPrecisionFormat",
|
||||
"WebSocket",
|
||||
"Window",
|
||||
"Worker",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue