| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../js/resources/js-test-pre.js"></script> |
| 4 <script src="resources/webgl-test.js"></script> | 4 <script src="resources/webgl-test.js"></script> |
| 5 <script src="resources/webgl-test-utils.js"> </script> | 5 <script src="resources/webgl-test-utils.js"> </script> |
| 6 </head> | 6 </head> |
| 7 <script> | 7 <script> |
| 8 description("Checks that copying canvas results to a WebGL texture functions wit
hout error."); | 8 description("Checks that copying canvas results to a WebGL texture functions wit
hout error."); |
| 9 | 9 |
| 10 var wtu = WebGLTestUtils; | 10 var wtu = WebGLTestUtils; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 gl.bindTexture(gl.TEXTURE_2D, texture); | 62 gl.bindTexture(gl.TEXTURE_2D, texture); |
| 63 gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); | 63 gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); |
| 64 | 64 |
| 65 gl.uniform1i(gl.getUniformLocation(program, "tex"), 0); | 65 gl.uniform1i(gl.getUniformLocation(program, "tex"), 0); |
| 66 gl.viewport(0, 0, canvas.width, canvas.height); | 66 gl.viewport(0, 0, canvas.width, canvas.height); |
| 67 | 67 |
| 68 // Ensure that the compositor has become active. | 68 // Ensure that the compositor has become active. |
| 69 setTimeout(draw, 0); | 69 setTimeout(draw, 0); |
| 70 } | 70 } |
| 71 </script> | 71 </script> |
| 72 <script src="../../js/resources/js-test-post.js"></script> | |
| 73 <body> | 72 <body> |
| 74 <div id="description"></div> | 73 <div id="description"></div> |
| 75 <div id="console"></div> | 74 <div id="console"></div> |
| 76 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> | 75 <canvas id="webgl-canvas" width="32px" height="32px"></canvas> |
| 77 <canvas id="canvas-2d" style="-webkit-transform: translateZ(0);"></canvas> | 76 <canvas id="canvas-2d" style="-webkit-transform: translateZ(0);"></canvas> |
| 78 </body> | 77 </body> |
| 79 </html> | 78 </html> |
| OLD | NEW |