OLD | NEW |
1 Test that layers can be nicely added or removed from a squashed layer, without u
nnecessary repaints on any layer. Click anywhere to test interactively; keep cli
cking to proceed through the test. | 1 Test that layers can be nicely added or removed from a squashed layer, without u
nnecessary repaints on any layer. Click anywhere to test interactively; keep cli
cking to proceed through the test. |
2 | 2 |
3 CASE 1, original layer tree with overlap1 and overlap2: | 3 CASE 1, original layer tree with overlap1 and overlap2: |
4 { | 4 { |
5 "bounds": [800, 600], | 5 "bounds": [800, 600], |
6 "children": [ | 6 "children": [ |
7 { | 7 { |
8 "bounds": [800, 600], | 8 "bounds": [800, 600], |
9 "contentsOpaque": true, | 9 "contentsOpaque": true, |
10 "drawsContent": true, | 10 "drawsContent": true, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 ] | 132 ] |
133 } | 133 } |
134 CASE 5, overlap2 gets added back: | 134 CASE 5, overlap2 gets added back: |
135 { | 135 { |
136 "bounds": [800, 600], | 136 "bounds": [800, 600], |
137 "children": [ | 137 "children": [ |
138 { | 138 { |
139 "bounds": [800, 600], | 139 "bounds": [800, 600], |
140 "contentsOpaque": true, | 140 "contentsOpaque": true, |
141 "drawsContent": true, | 141 "drawsContent": true, |
| 142 "repaintRects": [ |
| 143 [0, 0, 100, 100] |
| 144 ], |
142 "children": [ | 145 "children": [ |
143 { | 146 { |
144 "shouldFlattenTransform": false, | 147 "shouldFlattenTransform": false, |
145 "children": [ | 148 "children": [ |
146 { | 149 { |
147 "position": [60, 60], | 150 "position": [60, 60], |
148 "bounds": [400, 400], | 151 "bounds": [400, 400], |
149 "contentsOpaque": true, | 152 "contentsOpaque": true, |
150 "drawsContent": true, | 153 "drawsContent": true, |
151 "backgroundColor": "#808080" | 154 "backgroundColor": "#808080" |
152 }, | 155 }, |
153 { | 156 { |
154 "position": [220, 220], | 157 "position": [220, 220], |
155 "bounds": [180, 180], | 158 "bounds": [180, 180], |
156 "drawsContent": true, | 159 "drawsContent": true, |
157 "repaintRects": [ | 160 "repaintRects": [ |
158 [80, 80, 100, 100], | 161 [80, 80, 100, 100], |
159 [0, 0, 100, 100], | |
160 [0, 0, 100, 100] | 162 [0, 0, 100, 100] |
161 ] | 163 ] |
162 } | 164 } |
163 ] | 165 ] |
164 } | 166 } |
165 ] | 167 ] |
166 } | 168 } |
167 ] | 169 ] |
168 } | 170 } |
169 CASE 6, overlap1 gets added back, and overlap3 gets removed: | 171 CASE 6, overlap1 gets added back, and overlap3 gets removed: |
170 { | 172 { |
171 "bounds": [800, 600], | 173 "bounds": [800, 600], |
172 "children": [ | 174 "children": [ |
173 { | 175 { |
174 "bounds": [800, 600], | 176 "bounds": [800, 600], |
175 "contentsOpaque": true, | 177 "contentsOpaque": true, |
176 "drawsContent": true, | 178 "drawsContent": true, |
| 179 "repaintRects": [ |
| 180 [0, 0, 100, 100] |
| 181 ], |
177 "children": [ | 182 "children": [ |
178 { | 183 { |
179 "shouldFlattenTransform": false, | 184 "shouldFlattenTransform": false, |
180 "children": [ | 185 "children": [ |
181 { | 186 { |
182 "position": [60, 60], | 187 "position": [60, 60], |
183 "bounds": [400, 400], | 188 "bounds": [400, 400], |
184 "contentsOpaque": true, | 189 "contentsOpaque": true, |
185 "drawsContent": true, | 190 "drawsContent": true, |
186 "backgroundColor": "#808080" | 191 "backgroundColor": "#808080" |
187 }, | 192 }, |
188 { | 193 { |
189 "position": [140, 140], | 194 "position": [140, 140], |
190 "bounds": [180, 180], | 195 "bounds": [180, 180], |
191 "drawsContent": true, | 196 "drawsContent": true, |
192 "repaintRects": [ | 197 "repaintRects": [ |
193 [80, 80, 100, 100], | 198 [80, 80, 100, 100], |
194 [80, 80, 100, 100], | 199 [80, 80, 100, 100], |
195 [0, 0, 100, 100], | |
196 [0, 0, 100, 100] | 200 [0, 0, 100, 100] |
197 ] | 201 ] |
198 } | 202 } |
199 ] | 203 ] |
200 } | 204 } |
201 ] | 205 ] |
202 } | 206 } |
203 ] | 207 ] |
204 } | 208 } |
205 | 209 |
OLD | NEW |