diff options
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 70c9ba3a2090..09814bd7b470 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -39,6 +39,7 @@ #include <svx/fmshell.hxx> #include <tools/debug.hxx> #include <tools/diagnose_ex.h> +#include <vcl/graphicfilter.hxx> #include <view/viewoverlaymanager.hxx> @@ -997,6 +998,13 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) VisAreaChanged(::tools::Rectangle(Point(), Size(1, 1))); } + // Try to prefetch all graphics for the active page. This will be done + // in threads to be more efficient than loading them on-demand one by one. + std::vector<Graphic*> graphics; + mpActualPage->getGraphicsForPrefetch(graphics); + if(graphics.size() > 1) // threading does not help with loading just one + GraphicFilter::GetGraphicFilter().MakeGraphicsAvailableThreaded(graphics); + if (meEditMode == EditMode::Page) { /********************************************************************** |