Commit 83e5b96
committed
[GTK][WPE] Stuttering when playing WebP animations
https://bugs.webkit.org/show_bug.cgi?id=297393
Reviewed by Carlos Garcia Campos.
When clearing the FrameBuffer cache, keep the most recent complete frame
around, because that will probably be necessary to decode the next frame.
This avoids having to decode several frames in a row in order to get the
next frame after a call to clearFrameBufferCache() is performed.
* Source/WebCore/platform/image-decoders/webp/WEBPImageDecoder.cpp:
(WebCore::WEBPImageDecoder::clearFrameBufferCache):
Canonical link: https://commits.webkit.org/298831@main1 parent 67ef499 commit 83e5b96
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| 354 | + | |
354 | 355 | | |
355 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
356 | 361 | | |
357 | 362 | | |
358 | 363 | | |
| |||
0 commit comments