summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-10-10 13:25:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-10-12 07:57:20 +0200
commit286bbda9cd991c0a31c1cb88916507e586469434 (patch)
tree3348f55bf85abcad525b92eedc1043d62820c6e5 /vcl
parent3622404f09448b82c095256140afe6240b522ece (diff)
cool#7318 Calc rendering acceleration (part2)
we are spending a lot of time in SalLayoutGlyphsCache::GetLayoutGlyphs, and most of that is inserting into the GlyphsCache, which has a very very large key. Shrink that key a little bit Change-Id: I6f27c147652521502dba4517afd9a2ae2a6daebb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157754 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/impglyphitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/impglyphitem.cxx b/vcl/source/gdi/impglyphitem.cxx
index 1de52c7597ce..ca8016a1925d 100644
--- a/vcl/source/gdi/impglyphitem.cxx
+++ b/vcl/source/gdi/impglyphitem.cxx
@@ -490,9 +490,9 @@ SalLayoutGlyphsCache::CachedGlyphsKey::CachedGlyphsKey(
// That would occasionally lead to rounding errors (at least differences that would
// make checkGlyphsEqual() fail).
, mapMode(outputDevice->GetMapMode())
- , rtl(outputDevice->IsRTLEnabled())
- , layoutMode(outputDevice->GetLayoutMode())
, digitLanguage(outputDevice->GetDigitLanguage())
+ , layoutMode(outputDevice->GetLayoutMode())
+ , rtl(outputDevice->IsRTLEnabled())
{
const LogicalFontInstance* fi = outputDevice->GetFontInstance();
fi->GetScale(&fontScaleX, &fontScaleY);