summaryrefslogtreecommitdiff
path: root/vcl/skia
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-14 23:25:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-16 16:17:08 +0100
commit3eecde27009b74a7f3bf75809109a2367e262b09 (patch)
tree3a6716386fe51a31fdad7d58b8f1372d8e840c32 /vcl/skia
parent3a14b2040ecd95a23acbc3e8d0f8087505135f11 (diff)
throw away skia control cache on theme change
Change-Id: Idd21e966cf2c9b246c7484ba6c118c872a3dbac3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131568 Tested-by: Jenkins Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/skia')
-rw-r--r--vcl/skia/win/gdiimpl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/skia/win/gdiimpl.cxx b/vcl/skia/win/gdiimpl.cxx
index f2f0d82a9047..586b4e1fdd97 100644
--- a/vcl/skia/win/gdiimpl.cxx
+++ b/vcl/skia/win/gdiimpl.cxx
@@ -428,4 +428,10 @@ void WinSkiaSalGraphicsImpl::prepareSkia()
SkiaHelper::prepareSkia(createVulkanWindowContext);
}
+void WinSkiaSalGraphicsImpl::ClearNativeControlCache()
+{
+ SalData* data = GetSalData();
+ data->m_pSkiaControlsCache.reset();
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */