Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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: 'Measures performance of CSS transition animation with one foreground animation and many in the background (animating on background-color). ', | |
|
rjwright
2014/10/15 03:37:13
"Measure performance of CSS Transitions animating
| |
| 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 Loading... | |
| 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> |
| OLD | NEW |