summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-03-14 15:55:00 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-03-15 14:35:54 +0100
commitb2f0da51e36ae65d304881967605700ecee59575 (patch)
treed0bab1befdfc83b174d8d0318fe5e400eb04152b /include
parent3cc41346f5529026d7d38f2863ae3d84948e6ab7 (diff)
make CreateTextLayoutCache() cached (tdf#116400)
The result depends only on the string, so it's possible to cache it easily, and caching this for text drawing calls can have a good hit rate. Change-Id: I56c6e254cc176ab07afe0df24ed37b19579fe64d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131556 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/outdev.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index fe1d9583e2ba..e1f85ad16fc7 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1075,7 +1075,7 @@ public:
sal_Int32 nIndex, sal_Int32 nLen,
tools::Long nCharExtra,
vcl::text::TextLayoutCache const* = nullptr) const;
- static std::shared_ptr<vcl::text::TextLayoutCache> CreateTextLayoutCache(OUString const&);
+ static std::shared_ptr<const vcl::text::TextLayoutCache> CreateTextLayoutCache(OUString const&);
protected:
SAL_DLLPRIVATE void ImplInitTextLineSize();