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

Side by Side Diff: third_party/WebKit/PerformanceTests/ShadowDOM/ContentReprojection.html

Issue 1557953002: Revert unfinished work of "full-frame-measurement" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PerfPaint
Patch Set: Created 4 years, 11 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 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript" src="../resources/runner.js"></script> 4 <script type="text/javascript" src="../resources/runner.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 7
8 <div id="wrapper"> 8 <div id="wrapper">
9 <div id="host"></div> 9 <div id="host"></div>
10 </div> 10 </div>
(...skipping 24 matching lines...) Expand all
35 35
36 function run() 36 function run()
37 { 37 {
38 var host = document.getElementById('host'); 38 var host = document.getElementById('host');
39 var nLoops = window.nLoops; 39 var nLoops = window.nLoops;
40 40
41 var div = document.createElement('div'); 41 var div = document.createElement('div');
42 for (var i = 0; i < nLoops; ++i) { 42 for (var i = 0; i < nLoops; ++i) {
43 host.appendChild(div); 43 host.appendChild(div);
44 host.removeChild(div); 44 host.removeChild(div);
45 PerfTestRunner.forceLayoutOrFullFrame(); 45 PerfTestRunner.forceLayout();
46 } 46 }
47 } 47 }
48 48
49 function done() 49 function done()
50 { 50 {
51 wrapper.innerHTML = ''; 51 wrapper.innerHTML = '';
52 } 52 }
53 53
54 setup(); 54 setup();
55 55
56 PerfTestRunner.measureTime({ 56 PerfTestRunner.measureTime({
57 description: "Measure performance of content reprojection and distribution", 57 description: "Measure performance of content reprojection and distribution",
58 run: run, 58 run: run,
59 done: done 59 done: done
60 }); 60 });
61 </script> 61 </script>
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698