OLD | NEW |
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 Loading... |
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> |
OLD | NEW |