summaryrefslogtreecommitdiff
path: root/vcl/source/app/svapp.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2024-03-18 00:17:54 +0900
committerTomaž Vajngerl <quikee@gmail.com>2024-03-30 15:21:10 +0100
commit324f2e135427f2f24cf7eb9a4fab4aa903329ae5 (patch)
treebdcf04a1cd47b22a7612e903f9c68aef17c1dc41 /vcl/source/app/svapp.cxx
parent174430d7a831eede078b6718d991b506d39180f1 (diff)
vcl: change (graphic) Manager into a general memory manager
Graphic memory manager was changes so that it can work with any object that implements a specific interface (MemoryManaged). With this it will be possible to use other objects (that take a lot of memory) to be managed by the manager. It is also a first step to move memory managin responsibilities away from Graphic and move it into the specific objects instead (BitmapEx, Animation and VectorGraphic). Change-Id: I7638bd89a1c9ece5c4bc95b506d2192492894ef3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164958 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r--vcl/source/app/svapp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index e0995e0793e2..3b150e1bd956 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1775,7 +1775,7 @@ void dumpState(rtl::OStringBuffer &rState)
pWin = Application::GetNextTopLevelWindow( pWin );
}
- vcl::graphic::Manager::get().dumpState(rState);
+ vcl::graphic::MemoryManager::get().dumpState(rState);
pSVData->dumpState(rState);
@@ -1792,7 +1792,7 @@ void trimMemory(int nTarget)
if (!pSVData) // shutting down
return;
pSVData->dropCaches();
- vcl::graphic::Manager::get().dropCache();
+ vcl::graphic::MemoryManager::get().reduceAllAndNow();
// TODO: ideally - free up any deeper dirtied thread stacks.
// comphelper::ThreadPool::getSharedOptimalPool().shutdown();
}