diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-10 13:25:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-12 07:57:20 +0200 |
commit | 286bbda9cd991c0a31c1cb88916507e586469434 (patch) | |
tree | 3348f55bf85abcad525b92eedc1043d62820c6e5 /include | |
parent | 3622404f09448b82c095256140afe6240b522ece (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 'include')
-rw-r--r-- | include/vcl/glyphitemcache.hxx | 10 | ||||
-rw-r--r-- | include/vcl/rendercontext/State.hxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/glyphitemcache.hxx b/include/vcl/glyphitemcache.hxx index 6c4c1ea1294b..a5a8ec1518e4 100644 --- a/include/vcl/glyphitemcache.hxx +++ b/include/vcl/glyphitemcache.hxx @@ -80,12 +80,12 @@ private: double fontScaleX; double fontScaleY; MapMode mapMode; - bool rtl; - bool disabledLigatures; // because of fixed pitch - bool artificialItalic; - bool artificialBold; - vcl::text::ComplexTextLayoutFlags layoutMode; LanguageType digitLanguage; + vcl::text::ComplexTextLayoutFlags layoutMode; + bool rtl : 1; + bool disabledLigatures : 1; // because of fixed pitch + bool artificialItalic : 1; + bool artificialBold : 1; size_t hashValue; CachedGlyphsKey(const VclPtr<const OutputDevice>& dev, OUString t, sal_Int32 i, sal_Int32 l, tools::Long w); diff --git a/include/vcl/rendercontext/State.hxx b/include/vcl/rendercontext/State.hxx index 042eb2deca7a..0359a486e4b2 100644 --- a/include/vcl/rendercontext/State.hxx +++ b/include/vcl/rendercontext/State.hxx @@ -73,7 +73,7 @@ namespace vcl::text { // Layout flags for Complex Text Layout // These are flag values, i.e they can be combined -enum class ComplexTextLayoutFlags +enum class ComplexTextLayoutFlags : sal_uInt8 { Default = 0x0000, BiDiRtl = 0x0001, |