OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .shouldCompositeAndHaveGpuHint { | 5 .shouldCompositeAndHaveGpuHint { |
6 position: absolute; | 6 position: absolute; |
7 width: 50px; | 7 width: 50px; |
8 height: 50px; | 8 height: 50px; |
9 background-color: green; | 9 background-color: green; |
10 } | 10 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 72 } |
73 | 73 |
74 #willChangeCombination { | 74 #willChangeCombination { |
75 will-change: z-index, width, position; | 75 will-change: z-index, width, position; |
76 top: 120px; | 76 top: 120px; |
77 left: 120px; | 77 left: 120px; |
78 } | 78 } |
79 </style> | 79 </style> |
80 | 80 |
81 <script> | 81 <script> |
82 if (window.internals) | 82 if (window.internals) { |
83 window.internals.settings.setAcceleratedCompositingForGpuRasterizationHint
Enabled(true); | 83 window.internals.settings.setAcceleratedCompositingForGpuRasterizationHint
Enabled(true); |
| 84 // Force an update of the compositing triggers. |
| 85 window.internals.layerTreeAsText(document); |
| 86 } |
84 | 87 |
85 if (window.testRunner) { | 88 if (window.testRunner) { |
86 testRunner.dumpAsText(); | 89 testRunner.dumpAsText(); |
87 testRunner.waitUntilDone(); | 90 testRunner.waitUntilDone(); |
88 } | 91 } |
89 | 92 |
90 window.addEventListener('load', function() { | 93 window.addEventListener('load', function() { |
91 if (window.testRunner) { | 94 if (window.testRunner) { |
92 document.getElementById("layertree").innerText = window.internals.layerT
reeAsText(document); | 95 document.getElementById("layertree").innerText = window.internals.layerT
reeAsText(document); |
93 testRunner.notifyDone(); | 96 testRunner.notifyDone(); |
94 } | 97 } |
95 }, false); | 98 }, false); |
96 </script> | 99 </script> |
97 </head> | 100 </head> |
98 <body> | 101 <body> |
99 <div id="willChangeAuto" class="shouldNotComposite"></div> | 102 <div id="willChangeAuto" class="shouldNotComposite"></div> |
100 <div id="willChangeZIndex" class="shouldNotComposite"></div> | 103 <div id="willChangeZIndex" class="shouldNotComposite"></div> |
101 <div id="willChangeOpacity" class="shouldCompositeButNotHaveGpuHint"></div> | 104 <div id="willChangeOpacity" class="shouldCompositeButNotHaveGpuHint"></div> |
102 <div id="willChangeContents" class="shouldCompositeAndHaveGpuHint"></div> | 105 <div id="willChangeContents" class="shouldCompositeAndHaveGpuHint"></div> |
103 <div id="willChangeWidth" class="shouldCompositeAndHaveGpuHint"></div> | 106 <div id="willChangeWidth" class="shouldCompositeAndHaveGpuHint"></div> |
104 <div id="willChangeHeight" class="shouldCompositeAndHaveGpuHint"></div> | 107 <div id="willChangeHeight" class="shouldCompositeAndHaveGpuHint"></div> |
105 <div id="willChangeBackgroundColor" class="shouldCompositeAndHaveGpuHint"></di
v> | 108 <div id="willChangeBackgroundColor" class="shouldCompositeAndHaveGpuHint"></di
v> |
106 <div id="willChangeBackgroundPosition" class="shouldCompositeAndHaveGpuHint"><
/div> | 109 <div id="willChangeBackgroundPosition" class="shouldCompositeAndHaveGpuHint"><
/div> |
107 <div id="willChangeCombination" class="shouldCompositeAndHaveGpuHint"></div> | 110 <div id="willChangeCombination" class="shouldCompositeAndHaveGpuHint"></div> |
108 | 111 |
109 <pre id="layertree"></pre> | 112 <pre id="layertree"></pre> |
110 </body> | 113 </body> |
111 </html> | 114 </html> |
OLD | NEW |