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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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);
9 }
10 </style>
11 <script>
12 var frameCount = 0;
13 var totalRafs = 50;
14
15 function runTest() {
16 window.webkitRequestAnimationFrame(draw);
17 }
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);
26 }
27 console.timeEnd("___RafWithNoDamage___");
28 }
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>
OLDNEW
« 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