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

Side by Side Diff: third_party/WebKit/PerformanceTests/Layout/layers_overlap_2d.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 <title>Performance tester for non-overlaping 2D layers</title> 4 <title>Performance tester for non-overlaping 2D layers</title>
5 <style> 5 <style>
6 .container { 6 .container {
7 position: relative; 7 position: relative;
8 width: 20px; 8 width: 20px;
9 height: 20px; 9 height: 20px;
10 border: 1px solid #AAA; 10 border: 1px solid #AAA;
(...skipping 25 matching lines...) Expand all
36 var inner = document.createElement('div'); 36 var inner = document.createElement('div');
37 inner.className = 'box'; 37 inner.className = 'box';
38 if (i == 0) { 38 if (i == 0) {
39 // Use at least one 3D layer to trigger the overlap map checking. 39 // Use at least one 3D layer to trigger the overlap map checking.
40 inner.className += " composited"; 40 inner.className += " composited";
41 } 41 }
42 outer.appendChild(inner); 42 outer.appendChild(inner);
43 container.appendChild(outer); 43 container.appendChild(outer);
44 } 44 }
45 document.body.appendChild(container); 45 document.body.appendChild(container);
46 PerfTestRunner.forceLayoutOrFullFrame(); 46 PerfTestRunner.forceLayout();
47 container.remove(); 47 container.remove();
48 } 48 }
49 } 49 }
50 PerfTestRunner.measureTime({ 50 PerfTestRunner.measureTime({
51 description: "Measures performance of non-overlapping 2D layers. ", 51 description: "Measures performance of non-overlapping 2D layers. ",
52 run: createTestFunction(5000) 52 run: createTestFunction(5000)
53 }); 53 });
54 </script> 54 </script>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698