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

Side by Side Diff: third_party/WebKit/PerformanceTests/Paint/fixed-and-many-layers-scroll.html

Issue 2883603002: Use the new tracing based measurement for blink_perf.paint (Closed)
Patch Set: - Created 3 years, 7 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <div style="position: fixed; width: 10px; height: 10px; background-color: blue"> </div> 2 <div style="position: fixed; width: 10px; height: 10px; background-color: blue"> </div>
3 <table id="table"></table> 3 <table id="table"></table>
4 <script src="../resources/runner.js"></script> 4 <script src="../resources/runner.js"></script>
5 <script src="resources/paint.js"></script>
5 <script> 6 <script>
6 function createRow(i) { 7 function createRow(i) {
7 var tr = document.createElement('tr'); 8 var tr = document.createElement('tr');
8 tr.innerHTML = '<td>' + i + '</td>' + 9 tr.innerHTML = '<td>' + i + '</td>' +
9 '<td style="position: relative"><b><i><u>Test</u></i></b><b><i><u>Test</u>< /i></b><b><i><u>Test</u></i></b><b><i><u>Test</u></i></b></td>'; 10 '<td style="position: relative"><b><i><u>Test</u></i></b><b><i><u>Test</u>< /i></b><b><i><u>Test</u></i></b><b><i><u>Test</u></i></b></td>';
10 table.appendChild(tr); 11 table.appendChild(tr);
11 } 12 }
12 13
13 for (var i = 0; i < 20000; ++i) 14 for (var i = 0; i < 20000; ++i)
14 createRow(i); 15 createRow(i);
15 16
16 var count = 0; 17 var count = 0;
17 PerfTestRunner.measureFrameTime({ 18 measurePaint({
18 run: function() { 19 run: function() {
19 window.scrollTo(0, 20 * count++); 20 window.scrollTo(0, 20 * count++);
20 }, 21 },
21 }); 22 });
22 </script> 23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698