Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / gpu / feature_multisampling.html
blob136fda5c3a5c364735cea8810d8d3d63e968f3a0
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>GPU Feature Testing: WebGL Multisampling</title>
6 <script>
7 function init() {
8 var canvas = document.createElement("canvas");
9 if (!canvas)
10 return null;
11 var context = null;
12 var attrib = { antialias: true }; // It is the default setting.
13 try {
14 context = canvas.getContext("webgl", attrib);
15 } catch(e) {}
16 if (!context) {
17 try {
18 context = canvas.getContext("experimental-webgl", attrib);
19 } catch(e) {}
21 return context;
24 function runTest() {
25 var gl = init();
26 var attrib = null;
27 if (gl)
28 attrib = gl.getContextAttributes();
29 domAutomationController.setAutomationId(1);
30 if (gl && attrib && attrib.antialias)
31 domAutomationController.send("TRUE");
32 else
33 domAutomationController.send("FALSE");
35 </script>
36 </head>
37 <body onload="runTest()">
38 WebGL should use multisampling if it is allowed.
39 </body>
40 </html>