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

Side by Side Diff: PerformanceTests/Animation/overlay-background-color-transitions.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
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 Copyright (C) 2013 Intel Inc. All rights reserved. 5 Copyright (C) 2013 Intel Inc. All rights reserved.
6 6
7 Redistribution and use in source and binary forms, with or without 7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions are 8 modification, are permitted provided that the following conditions are
9 met: 9 met:
10 * Redistributions of source code must retain the above copyright 10 * Redistributions of source code must retain the above copyright
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 <script src="resources/framerate.js"></script> 61 <script src="resources/framerate.js"></script>
62 <script> 62 <script>
63 var maxOverlays = 500; 63 var maxOverlays = 500;
64 var colors = ["rgba(204, 0, 0, 0.5)", "rgba(255, 204, 0, 0.5)", "rgba(170, 255, 0, 0.5)" 64 var colors = ["rgba(204, 0, 0, 0.5)", "rgba(255, 204, 0, 0.5)", "rgba(170, 255, 0, 0.5)"
65 , "rgba(0, 153, 204, 0.5)", "rgba(25, 76, 153, 0.5)", "rgba(102, 2 5, 153, 0.5)"]; 65 , "rgba(0, 153, 204, 0.5)", "rgba(25, 76, 153, 0.5)", "rgba(102, 2 5, 153, 0.5)"];
66 66
67 var testRunning = true; 67 var testRunning = true;
68 var overlays = []; 68 var overlays = [];
69 69
70 window.onload = function () { 70 window.onload = function () {
71 PerfTestRunner.prepareToMeasureValuesAsync({done: onCompletedRun, unit: 'fps '}); 71 PerfTestRunner.prepareToMeasureValuesAsync({
72 description: "Measure performance of CSS Transitions animating backgroun d-color on many overlaid elements (only one element showing).",
73 done: onCompletedRun,
74 unit: 'fps'
75 });
72 76
73 // Create the overlays 77 // Create the overlays
74 for (var i = 0; i < maxOverlays; i++) { 78 for (var i = 0; i < maxOverlays; i++) {
75 var overlay = new Overlay(); 79 var overlay = new Overlay();
76 overlay.start(); 80 overlay.start();
77 overlays.push(overlay); 81 overlays.push(overlay);
78 } 82 }
79 83
80 startTrackingFrameRate(); 84 startTrackingFrameRate();
81 } 85 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 function onCompletedRun() { 118 function onCompletedRun() {
115 stopTrackingFrameRate(); 119 stopTrackingFrameRate();
116 120
117 for (var i = 0; i < overlays.length; i++) 121 for (var i = 0; i < overlays.length; i++)
118 overlays[i].destroy(); 122 overlays[i].destroy();
119 overlays = []; 123 overlays = [];
120 } 124 }
121 </script> 125 </script>
122 </head> 126 </head>
123 </html> 127 </html>
OLDNEW
« no previous file with comments | « PerformanceTests/Animation/balls-transitions.html ('k') | PerformanceTests/Bindings/event-target-wrapper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698