Bug 1529724 [wpt PR 15428] - Update interfaces/webgl1.idl, a=testonly
authorautofoolip <auto@foolip.org>
Tue, 05 Mar 2019 12:18:37 +0000
changeset 464582 d60d45526348
parent 464581 90a58f096301
child 464583 8566ae4d1526
push id35717
push useraciure@mozilla.com
push dateSun, 17 Mar 2019 09:45:26 +0000
treeherdermozilla-central@e0861be8d6c0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1529724, 15428
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1529724 [wpt PR 15428] - Update interfaces/webgl1.idl, a=testonly Automatic update from web-platform-tests Update interfaces/webgl1.idl (#15428) Source: https://github.com/tidoust/reffy-reports/blob/9c32f49/whatwg/idl/webgl1.idl Build: https://travis-ci.org/tidoust/reffy-reports/builds/494128798 -- wpt-commits: 2bed10ac31899a4812f7e1d32ac69ade0bbe7f4f wpt-pr: 15428
testing/web-platform/tests/interfaces/webgl1.idl
--- a/testing/web-platform/tests/interfaces/webgl1.idl
+++ b/testing/web-platform/tests/interfaces/webgl1.idl
@@ -19,24 +19,24 @@ typedef unsigned long  GLuint;
 typedef unrestricted float GLfloat;
 typedef unrestricted float GLclampf;
 
 // The power preference settings are documented in the WebGLContextAttributes
 // section of the specification.
 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)]
 interface WebGLObject {
 };
 
 [Exposed=(Window,Worker)]
 interface WebGLBuffer : WebGLObject {
@@ -79,17 +79,18 @@ interface WebGLShaderPrecisionFormat {
     readonly attribute GLint rangeMax;
     readonly attribute GLint precision;
 };
 
 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;
 
 interface mixin WebGLRenderingContextBase
 {
 
     /* ClearBufferMask */
@@ -505,17 +506,18 @@ interface mixin WebGLRenderingContextBas
 
     /* WebGL-specific enums */
     const GLenum UNPACK_FLIP_Y_WEBGL            = 0x9240;
     const GLenum UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
     const GLenum CONTEXT_LOST_WEBGL             = 0x9242;
     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;
 
     [WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
     [WebGLHandlesContextLoss] boolean isContextLost();
 
     sequence<DOMString>? getSupportedExtensions();
     object? getExtension(DOMString name);