try to make available all slide images using threads

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 16 October 2020 08:10 UTC

Graphic::makeAvailable() is not thread-safe, but the jpeg loader is capable of that, and the graphic can be loaded using the stream data (which is what ultimately makeAvailable() will do anyway). This loads all images faster using threads instead of them being loaded one by one on-demand.

Change-Id: Ifc39a2757834a9fb0dbafa61f13f5454e69af330 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104082

8062e88e73ac try to make available all slide images using threads
include/vcl/graphicfilter.hxx | 6 +++++
sd/inc/sdpage.hxx | 7 +++++
sd/source/core/sdpage2.cxx | 11 ++++++++
sd/source/ui/slidesorter/view/SlideSorterView.cxx | 14 ++++++++++
slideshow/source/engine/slide/slideimpl.cxx | 20 ++++++++++++++
vcl/inc/impgraph.hxx | 2 ++
vcl/source/filter/graphicfilter.cxx | 33 +++++++++++++++++++++++
vcl/source/gdi/impgraph.cxx | 11 ++++----
8 files changed, 99 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share