| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>GPU Feature Testing: WebGL</title> | 5 <title>GPU Feature Testing: WebGL</title> |
| 6 <script> | 6 <script> |
| 7 var frameCount = 0; | 7 var frameCount = 0; |
| 8 var gl = null; | 8 var gl = null; |
| 9 | 9 |
| 10 function init() { | 10 function init() { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 gl.clearColor(1.0/frameCount, 0.0, 0.0, 1.0); | 35 gl.clearColor(1.0/frameCount, 0.0, 0.0, 1.0); |
| 36 gl.clear(gl.COLOR_BUFFER_BIT); | 36 gl.clear(gl.COLOR_BUFFER_BIT); |
| 37 if (frameCount == 6) { | 37 if (frameCount == 6) { |
| 38 endTest(); | 38 endTest(); |
| 39 } else { | 39 } else { |
| 40 window.requestAnimationFrame(draw); | 40 window.requestAnimationFrame(draw); |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 | 43 |
| 44 function endTest() { | 44 function endTest() { |
| 45 domAutomationController.setAutomationId(1); | |
| 46 domAutomationController.send("FINISHED"); | 45 domAutomationController.send("FINISHED"); |
| 47 } | 46 } |
| 48 </script> | 47 </script> |
| 49 </head> | 48 </head> |
| 50 <body onload="runTest()"> | 49 <body onload="runTest()"> |
| 51 WebGL should trigger GPU process launch if it is allowed. | 50 WebGL should trigger GPU process launch if it is allowed. |
| 52 <canvas id="da-canvas" width="10" height="10"></canvas> | 51 <canvas id="da-canvas" width="10" height="10"></canvas> |
| 53 </body> | 52 </body> |
| 54 </html> | 53 </html> |
| OLD | NEW |