Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / gpu / feature_raf_no_damage.html
blob496ac10117360aeb57f54c904b7d912766f6f1c7
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>GPU Feature Testing: Accelerated Compositing No Damage</title>
6 <style>
7 body {
8 -webkit-transform: translateZ(0);
10 </style>
11 <script>
12 var frameCount = 0;
13 var totalRafs = 50;
15 function runTest() {
16 window.webkitRequestAnimationFrame(draw);
18 function draw() {
19 console.time("___RafWithNoDamage___");
20 frameCount++;
21 if (frameCount == totalRafs) {
22 domAutomationController.setAutomationId(1);
23 domAutomationController.send("FINISHED");
24 } else {
25 window.webkitRequestAnimationFrame(draw);
27 console.timeEnd("___RafWithNoDamage___");
29 </script>
30 </head>
31 <body onload="runTest()">
32 This page should trigger accelerated-compositing, i.e., gpu process should
33 launch, if accelerated-compositing is allowed. However, the RAF callback
34 does no damage, so there will be no Swaps and the RAF rate should be throttled
35 by software timers.
36 </body>
37 </html>