summaryrefslogtreecommitdiff
path: root/libreofficekit/source/gtk/lokdocview.cxx
diff options
context:
space:
mode:
authorAttila Szűcs <attila.szucs@collabora.com>2024-04-25 01:43:05 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-25 14:05:13 +0200
commit89998a744f9ee8efa40c0e1cb7bdbc783d3414fa (patch)
tree25c3b2de837e1d3eb2f7d59fbe796d5f64aca376 /libreofficekit/source/gtk/lokdocview.cxx
parenta600cb4865f2b4bce872a000c2614cf6478b1ee0 (diff)
tdf#153162 Animation load optimizationHEADmaster
Loading a big GIF animation can freeze LO for a long time, so: changed getAnimationFromGraphic, it can load parts of a big animation. It can be called several times to load the whole animation. Now it can load animation while it is playing. It may still load smaller animations at once before it is rendered. At first it load frames that sum maximum 5 million pixels. (But minimum 10 frame.) Changed the Graphic parameter to shared_ptr, so it won’t be deleted until the whole animation is loaded. Change-Id: I5ac16d7ee4883dbaefb604cd07757d19e5aa2939 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166608 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'libreofficekit/source/gtk/lokdocview.cxx')
0 files changed, 0 insertions, 0 deletions