5 <title>GPU Feature Testing: WebGL
</title>
11 var canvas
= document
.getElementById("da-canvas");
15 gl
= canvas
.getContext("webgl");
19 gl
= canvas
.getContext("experimental-webgl");
27 window
.webkitRequestAnimationFrame(draw
);
34 gl
.viewport(0, 0, 10, 10);
35 gl
.clearColor(1.0/frameCount
, 0.0, 0.0, 1.0);
36 gl
.clear(gl
.COLOR_BUFFER_BIT
);
37 if (frameCount
== 6) {
40 window
.webkitRequestAnimationFrame(draw
);
45 domAutomationController
.setAutomationId(1);
46 domAutomationController
.send("FINISHED");
50 <body onload=
"runTest()">
51 WebGL should trigger GPU process launch if it is allowed.
52 <canvas id=
"da-canvas" width=
"10" height=
"10"></canvas>