mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -30,8 +30,14 @@ function testTexImage2DFromVideoFrame(
|
|||
argbData.fill(0xFF966432); // 'rgb(50, 100, 150)';
|
||||
let frame = new VideoFrame(argbData, vfInit);
|
||||
|
||||
let gl_canvas = new OffscreenCanvas(width, height);
|
||||
let gl = gl_canvas.getContext('webgl');
|
||||
let canvas;
|
||||
if (self.HTMLCanvasElement) {
|
||||
canvas = document.createElement("canvas");
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
} else
|
||||
canvas = new OffscreenCanvas(width, height);
|
||||
let gl = canvas.getContext('webgl');
|
||||
|
||||
let program = WebGLTestUtils.setupTexturedQuad(gl);
|
||||
gl.clearColor(0, 0, 0, 1);
|
||||
|
@ -91,8 +97,14 @@ function testTexImageWithClosedVideoFrame(useTexSubImage2D) {
|
|||
argbData.fill(0xFF966432); // 'rgb(50, 100, 150)';
|
||||
let frame = new VideoFrame(argbData, vfInit);
|
||||
|
||||
let gl_canvas = new OffscreenCanvas(width, height);
|
||||
let gl = gl_canvas.getContext('webgl');
|
||||
let canvas;
|
||||
if (self.HTMLCanvasElement) {
|
||||
canvas = document.createElement("canvas");
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
} else
|
||||
canvas = new OffscreenCanvas(width, height);
|
||||
let gl = canvas.getContext('webgl');
|
||||
|
||||
frame.close();
|
||||
if (useTexSubImage2D) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue