Chromium Code Reviews
|
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE HTML> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta charset="utf-8"> | |
| 5 <title>GPU Feature Testing: WebGL</title> | |
| 6 <script> | |
| 7 function init() { | |
| 8 var canvas = document.createElement("canvas"); | |
| 9 if (!canvas) | |
| 10 return null; | |
| 11 var context = null; | |
| 12 try { | |
| 13 context = canvas.getContext("webgl"); | |
| 14 } catch(e) {} | |
| 15 if (!context) { | |
| 16 try { | |
| 17 context = canvas.getContext("experimental-webgl"); | |
| 18 } catch(e) {} | |
| 19 } | |
| 20 return context; | |
| 21 } | |
| 22 | |
| 23 function runTest() { | |
| 24 var gl = init(); | |
| 25 domAutomationController.setAutomationId(1); | |
| 26 domAutomationController.send("FINISHED"); | |
| 27 } | |
| 28 </script> | |
| 29 </head> | |
| 30 <body onload="runTest()"> | |
| 31 WebGL should trigger GPU process launch if it is allowed. | |
| 32 </body> | |
| 33 </html> | |
| OLD | NEW |