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 (GraphicsLayer | 4 (GraphicsLayer |
5 (bounds 800.00 600.00) | 5 (bounds 800.00 600.00) |
6 (children 1 | 6 (children 1 |
7 (GraphicsLayer | 7 (GraphicsLayer |
8 (bounds 800.00 600.00) | 8 (bounds 800.00 600.00) |
9 (contentsOpaque 1) | 9 (contentsOpaque 1) |
10 (drawsContent 1) | 10 (drawsContent 1) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 (drawsContent 1) | 47 (drawsContent 1) |
48 (backgroundColor #808080) | 48 (backgroundColor #808080) |
49 ) | 49 ) |
50 (GraphicsLayer | 50 (GraphicsLayer |
51 (position 140.00 140.00) | 51 (position 140.00 140.00) |
52 (bounds 260.00 260.00) | 52 (bounds 260.00 260.00) |
53 (drawsContent 1) | 53 (drawsContent 1) |
54 (repaint rects | 54 (repaint rects |
55 (rect 0.00 0.00 100.00 100.00) | 55 (rect 0.00 0.00 100.00 100.00) |
56 (rect 0.00 0.00 100.00 100.00) | 56 (rect 0.00 0.00 100.00 100.00) |
57 (rect 0.00 0.00 100.00 100.00) | |
58 ) | 57 ) |
59 ) | 58 ) |
60 ) | 59 ) |
61 ) | 60 ) |
62 ) | 61 ) |
63 ) | 62 ) |
64 ) | 63 ) |
65 ) | 64 ) |
66 CASE 3, overlap1 and overlap2 change color: | 65 CASE 3, overlap1 and overlap2 change color: |
67 (GraphicsLayer | 66 (GraphicsLayer |
(...skipping 13 matching lines...) Expand all Loading... |
81 (drawsContent 1) | 80 (drawsContent 1) |
82 (backgroundColor #808080) | 81 (backgroundColor #808080) |
83 ) | 82 ) |
84 (GraphicsLayer | 83 (GraphicsLayer |
85 (position 140.00 140.00) | 84 (position 140.00 140.00) |
86 (bounds 260.00 260.00) | 85 (bounds 260.00 260.00) |
87 (drawsContent 1) | 86 (drawsContent 1) |
88 (repaint rects | 87 (repaint rects |
89 (rect 80.00 80.00 100.00 100.00) | 88 (rect 80.00 80.00 100.00 100.00) |
90 (rect 80.00 80.00 100.00 100.00) | 89 (rect 80.00 80.00 100.00 100.00) |
91 (rect 80.00 80.00 100.00 100.00) | |
92 (rect 0.00 0.00 100.00 100.00) | 90 (rect 0.00 0.00 100.00 100.00) |
93 (rect 0.00 0.00 100.00 100.00) | 91 (rect 0.00 0.00 100.00 100.00) |
94 (rect 0.00 0.00 100.00 100.00) | |
95 ) | 92 ) |
96 ) | 93 ) |
97 ) | 94 ) |
98 ) | 95 ) |
99 ) | 96 ) |
100 ) | 97 ) |
101 ) | 98 ) |
102 ) | 99 ) |
103 CASE 4, overlap2 and overlap3 change color: | 100 CASE 4, overlap2 and overlap3 change color: |
104 (GraphicsLayer | 101 (GraphicsLayer |
(...skipping 13 matching lines...) Expand all Loading... |
118 (drawsContent 1) | 115 (drawsContent 1) |
119 (backgroundColor #808080) | 116 (backgroundColor #808080) |
120 ) | 117 ) |
121 (GraphicsLayer | 118 (GraphicsLayer |
122 (position 140.00 140.00) | 119 (position 140.00 140.00) |
123 (bounds 260.00 260.00) | 120 (bounds 260.00 260.00) |
124 (drawsContent 1) | 121 (drawsContent 1) |
125 (repaint rects | 122 (repaint rects |
126 (rect 160.00 160.00 100.00 100.00) | 123 (rect 160.00 160.00 100.00 100.00) |
127 (rect 160.00 160.00 100.00 100.00) | 124 (rect 160.00 160.00 100.00 100.00) |
128 (rect 160.00 160.00 100.00 100.00) | |
129 (rect 80.00 80.00 100.00 100.00) | 125 (rect 80.00 80.00 100.00 100.00) |
130 (rect 80.00 80.00 100.00 100.00) | 126 (rect 80.00 80.00 100.00 100.00) |
131 (rect 80.00 80.00 100.00 100.00) | |
132 ) | 127 ) |
133 ) | 128 ) |
134 ) | 129 ) |
135 ) | 130 ) |
136 ) | 131 ) |
137 ) | 132 ) |
138 ) | 133 ) |
139 ) | 134 ) |
140 CASE 5, overlap3 and overlap1 change color: | 135 CASE 5, overlap3 and overlap1 change color: |
141 (GraphicsLayer | 136 (GraphicsLayer |
(...skipping 13 matching lines...) Expand all Loading... |
155 (drawsContent 1) | 150 (drawsContent 1) |
156 (backgroundColor #808080) | 151 (backgroundColor #808080) |
157 ) | 152 ) |
158 (GraphicsLayer | 153 (GraphicsLayer |
159 (position 140.00 140.00) | 154 (position 140.00 140.00) |
160 (bounds 260.00 260.00) | 155 (bounds 260.00 260.00) |
161 (drawsContent 1) | 156 (drawsContent 1) |
162 (repaint rects | 157 (repaint rects |
163 (rect 160.00 160.00 100.00 100.00) | 158 (rect 160.00 160.00 100.00 100.00) |
164 (rect 160.00 160.00 100.00 100.00) | 159 (rect 160.00 160.00 100.00 100.00) |
165 (rect 160.00 160.00 100.00 100.00) | |
166 (rect 0.00 0.00 100.00 100.00) | 160 (rect 0.00 0.00 100.00 100.00) |
167 (rect 0.00 0.00 100.00 100.00) | 161 (rect 0.00 0.00 100.00 100.00) |
168 (rect 0.00 0.00 100.00 100.00) | |
169 ) | 162 ) |
170 ) | 163 ) |
171 ) | 164 ) |
172 ) | 165 ) |
173 ) | 166 ) |
174 ) | 167 ) |
175 ) | 168 ) |
176 ) | 169 ) |
177 | 170 |
OLD | NEW |