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

Side by Side Diff: PerformanceTests/Animation/api-balls-keyframe-animations.html

Issue 478003002: Fill in descriptions on relevant blink_perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: alancutter nits Created 6 years, 2 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
« no previous file with comments | « no previous file | PerformanceTests/Animation/api-set-current-time-balls-keyframe-animations.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright (c) 2012 Cameron Adams. All rights reserved. 2 Copyright (c) 2012 Cameron Adams. All rights reserved.
3 Copyright (c) 2012 Code Aurora Forum. All rights reserved. 3 Copyright (c) 2012 Code Aurora Forum. All rights reserved.
4 Copyright (C) 2013 Google Inc. All rights reserved. 4 Copyright (C) 2013 Google Inc. All rights reserved.
5 5
6 Redistribution and use in source and binary forms, with or without 6 Redistribution and use in source and binary forms, with or without
7 modification, are permitted provided that the following conditions are 7 modification, are permitted provided that the following conditions are
8 met: 8 met:
9 * Redistributions of source code must retain the above copyright 9 * Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer. 10 notice, this list of conditions and the following disclaimer.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 var minVelocity = 50; 64 var minVelocity = 50;
65 var maxVelocity = 500; 65 var maxVelocity = 500;
66 var particleRadius = 6; 66 var particleRadius = 6;
67 var colors = ["#cc0000", "#ffcc00", "#aaff00", "#0099cc", "#194c99", "#661999"]; 67 var colors = ["#cc0000", "#ffcc00", "#aaff00", "#0099cc", "#194c99", "#661999"];
68 var animationDuration = 10; 68 var animationDuration = 10;
69 69
70 var particles = []; 70 var particles = [];
71 var allParticleKeyframes = []; 71 var allParticleKeyframes = [];
72 72
73 window.onload = function () { 73 window.onload = function () {
74 PerfTestRunner.prepareToMeasureValuesAsync({done: onCompletedRun, unit: 'fps '}); 74 PerfTestRunner.prepareToMeasureValuesAsync({
75 description: "Measure performance of Web Animations API animating 'left' and 'top' using Element.animate()",
76 done: onCompletedRun,
77 unit: 'fps'
78 });
75 79
76 // Create the particles 80 // Create the particles
77 for (var i = 0; i < maxParticles; i++) { 81 for (var i = 0; i < maxParticles; i++) {
78 generateParticleKeyframes(i); 82 generateParticleKeyframes(i);
79 var particle = new Particle(i); 83 var particle = new Particle(i);
80 particle.start(); 84 particle.start();
81 particles.push(particle); 85 particles.push(particle);
82 } 86 }
83 87
84 startTrackingFrameRate(); 88 startTrackingFrameRate();
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 stopTrackingFrameRate(); 169 stopTrackingFrameRate();
166 170
167 for (var i = 0; i < particles.length; i++) 171 for (var i = 0; i < particles.length; i++)
168 particles[i].destroy(); 172 particles[i].destroy();
169 particles = []; 173 particles = [];
170 } 174 }
171 </script> 175 </script>
172 <style id="keyframes"></style> 176 <style id="keyframes"></style>
173 </head> 177 </head>
174 </html> 178 </html>
OLDNEW
« no previous file with comments | « no previous file | PerformanceTests/Animation/api-set-current-time-balls-keyframe-animations.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698