OLD | NEW |
1 Basic repaint test for squashed layers. The entire squashing layer should not ne
ed repainting when only a portion of it is invalidated. Test interactively by us
ing --show-paint-rects and hovering over elements to change their color. | 1 Basic repaint test for squashed layers. The entire squashing layer should not ne
ed repainting when only a portion of it is invalidated. Test interactively by us
ing --show-paint-rects and hovering over elements to change their color. |
2 | 2 |
3 CASE 1, original layer tree: | 3 CASE 1, original layer tree: |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 "bounds": [100, 100], | 45 "bounds": [100, 100], |
46 "contentsOpaque": true, | 46 "contentsOpaque": true, |
47 "drawsContent": true, | 47 "drawsContent": true, |
48 "backgroundColor": "#808080" | 48 "backgroundColor": "#808080" |
49 }, | 49 }, |
50 { | 50 { |
51 "position": [140, 140], | 51 "position": [140, 140], |
52 "bounds": [260, 260], | 52 "bounds": [260, 260], |
53 "drawsContent": true, | 53 "drawsContent": true, |
54 "repaintRects": [ | 54 "repaintRects": [ |
55 [0, 0, 100, 100], | |
56 [0, 0, 100, 100] | 55 [0, 0, 100, 100] |
57 ] | 56 ] |
58 } | 57 } |
59 ] | 58 ] |
60 } | 59 } |
61 ] | 60 ] |
62 } | 61 } |
63 ] | 62 ] |
64 } | 63 } |
65 CASE 3, overlap1 and overlap2 change color: | 64 CASE 3, overlap1 and overlap2 change color: |
(...skipping 13 matching lines...) Expand all Loading... |
79 "contentsOpaque": true, | 78 "contentsOpaque": true, |
80 "drawsContent": true, | 79 "drawsContent": true, |
81 "backgroundColor": "#808080" | 80 "backgroundColor": "#808080" |
82 }, | 81 }, |
83 { | 82 { |
84 "position": [140, 140], | 83 "position": [140, 140], |
85 "bounds": [260, 260], | 84 "bounds": [260, 260], |
86 "drawsContent": true, | 85 "drawsContent": true, |
87 "repaintRects": [ | 86 "repaintRects": [ |
88 [80, 80, 100, 100], | 87 [80, 80, 100, 100], |
89 [80, 80, 100, 100], | |
90 [0, 0, 100, 100], | |
91 [0, 0, 100, 100] | 88 [0, 0, 100, 100] |
92 ] | 89 ] |
93 } | 90 } |
94 ] | 91 ] |
95 } | 92 } |
96 ] | 93 ] |
97 } | 94 } |
98 ] | 95 ] |
99 } | 96 } |
100 CASE 4, overlap2 and overlap3 change color: | 97 CASE 4, overlap2 and overlap3 change color: |
(...skipping 13 matching lines...) Expand all Loading... |
114 "contentsOpaque": true, | 111 "contentsOpaque": true, |
115 "drawsContent": true, | 112 "drawsContent": true, |
116 "backgroundColor": "#808080" | 113 "backgroundColor": "#808080" |
117 }, | 114 }, |
118 { | 115 { |
119 "position": [140, 140], | 116 "position": [140, 140], |
120 "bounds": [260, 260], | 117 "bounds": [260, 260], |
121 "drawsContent": true, | 118 "drawsContent": true, |
122 "repaintRects": [ | 119 "repaintRects": [ |
123 [160, 160, 100, 100], | 120 [160, 160, 100, 100], |
124 [160, 160, 100, 100], | |
125 [80, 80, 100, 100], | |
126 [80, 80, 100, 100] | 121 [80, 80, 100, 100] |
127 ] | 122 ] |
128 } | 123 } |
129 ] | 124 ] |
130 } | 125 } |
131 ] | 126 ] |
132 } | 127 } |
133 ] | 128 ] |
134 } | 129 } |
135 CASE 5, overlap3 and overlap1 change color: | 130 CASE 5, overlap3 and overlap1 change color: |
(...skipping 13 matching lines...) Expand all Loading... |
149 "contentsOpaque": true, | 144 "contentsOpaque": true, |
150 "drawsContent": true, | 145 "drawsContent": true, |
151 "backgroundColor": "#808080" | 146 "backgroundColor": "#808080" |
152 }, | 147 }, |
153 { | 148 { |
154 "position": [140, 140], | 149 "position": [140, 140], |
155 "bounds": [260, 260], | 150 "bounds": [260, 260], |
156 "drawsContent": true, | 151 "drawsContent": true, |
157 "repaintRects": [ | 152 "repaintRects": [ |
158 [160, 160, 100, 100], | 153 [160, 160, 100, 100], |
159 [160, 160, 100, 100], | |
160 [0, 0, 100, 100], | |
161 [0, 0, 100, 100] | 154 [0, 0, 100, 100] |
162 ] | 155 ] |
163 } | 156 } |
164 ] | 157 ] |
165 } | 158 } |
166 ] | 159 ] |
167 } | 160 } |
168 ] | 161 ] |
169 } | 162 } |
170 | 163 |
OLD | NEW |