Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Unified Diff: chrome/test/data/gpu/feature_raf_no_damage.html

Issue 9580021: Add test for RAF-spinning with no damage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: marking test flaky for initial commit to be safe Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/trace_event_analyzer_unittest.cc ('k') | chrome/test/gpu/gpu_feature_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « base/test/trace_event_analyzer_unittest.cc ('k') | chrome/test/gpu/gpu_feature_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698