| Index: chrome/test/data/gpu/feature_raf_no_damage.html
|
| diff --git a/chrome/test/data/gpu/feature_raf_no_damage.html b/chrome/test/data/gpu/feature_raf_no_damage.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..496ac10117360aeb57f54c904b7d912766f6f1c7
|
| --- /dev/null
|
| +++ b/chrome/test/data/gpu/feature_raf_no_damage.html
|
| @@ -0,0 +1,37 @@
|
| +<!DOCTYPE HTML>
|
| +<html>
|
| +<head>
|
| +<meta charset="utf-8">
|
| +<title>GPU Feature Testing: Accelerated Compositing No Damage</title>
|
| +<style>
|
| +body {
|
| + -webkit-transform: translateZ(0);
|
| +}
|
| +</style>
|
| +<script>
|
| +var frameCount = 0;
|
| +var totalRafs = 50;
|
| +
|
| +function runTest() {
|
| + window.webkitRequestAnimationFrame(draw);
|
| +}
|
| +function draw() {
|
| + console.time("___RafWithNoDamage___");
|
| + frameCount++;
|
| + if (frameCount == totalRafs) {
|
| + domAutomationController.setAutomationId(1);
|
| + domAutomationController.send("FINISHED");
|
| + } else {
|
| + window.webkitRequestAnimationFrame(draw);
|
| + }
|
| + console.timeEnd("___RafWithNoDamage___");
|
| +}
|
| +</script>
|
| +</head>
|
| +<body onload="runTest()">
|
| +This page should trigger accelerated-compositing, i.e., gpu process should
|
| + launch, if accelerated-compositing is allowed. However, the RAF callback
|
| + does no damage, so there will be no Swaps and the RAF rate should be throttled
|
| + by software timers.
|
| +</body>
|
| +</html>
|
|
|