Commit 0213783
committed
[WPE][GTK] visible rect in case animations is not correctly calculated
https://bugs.webkit.org/show_bug.cgi?id=280612
Reviewed by Miguel Gomez.
For animations starting partially outside the viewport were not fully rendered when
the first frame entered the visible area. This caused incomplete or cut-off frames
during the initial stages of the animation. The issue was more noticeable on low-end
devices(RPi) or during slow-motion or frame-by-frame analysis of the recordings on x86.
With this change the visible rect is extended with the elements which are currently
not fully visible but they will be in a future bacause of animations.
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.cpp:
(WebCore::CoordinatedGraphicsLayer::transformedVisibleRectIncludingFuture):
(WebCore::CoordinatedGraphicsLayer::updateContentBuffers):
(WebCore::CoordinatedGraphicsLayer::computeTransformedVisibleRect):
* Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedGraphicsLayer.h:1 parent 22b825d commit 0213783
File tree
2 files changed
+33
-2
lines changed- Source/WebCore/platform/graphics/texmap/coordinated
2 files changed
+33
-2
lines changedLines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1116 | 1128 | | |
1117 | 1129 | | |
1118 | 1130 | | |
| |||
1185 | 1197 | | |
1186 | 1198 | | |
1187 | 1199 | | |
1188 | | - | |
| 1200 | + | |
1189 | 1201 | | |
1190 | 1202 | | |
1191 | 1203 | | |
| |||
1375 | 1387 | | |
1376 | 1388 | | |
1377 | 1389 | | |
1378 | | - | |
| 1390 | + | |
| 1391 | + | |
1379 | 1392 | | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
1380 | 1397 | | |
1381 | 1398 | | |
1382 | 1399 | | |
| |||
1389 | 1406 | | |
1390 | 1407 | | |
1391 | 1408 | | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
1392 | 1420 | | |
1393 | 1421 | | |
1394 | 1422 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| 215 | + | |
214 | 216 | | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
0 commit comments