1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
content / test / data / gpu / wait_for_compositing.html [blame]
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="initial-scale=1">
<title></title>
<style type="text/css">
.nomargin {
margin: 0px auto;
}
</style>
<script>
var g_swaps_before_success = 5
function waitForSwapsToComplete() {
g_swaps_before_success--;
if (g_swaps_before_success > 0) {
window.requestAnimationFrame(waitForSwapsToComplete);
} else {
domAutomationController.send("SUCCESS");
}
}
function main() {
window.requestAnimationFrame(waitForSwapsToComplete);
}
</script>
</head>
<body onload="main()">
</body>
</html>