diff options
author | Konstantin Ritt <ritt.ks@gmail.com> | 2014-12-19 06:59:31 +0400 |
---|---|---|
committer | Konstantin Ritt <ritt.ks@gmail.com> | 2014-12-23 14:57:37 +0100 |
commit | a0742ad6ce8bb85b128246b8c2256e1b24ece4e8 (patch) | |
tree | a4d7c22c3297da97852d85f11fbc7b7be9671876 /src/widgets/dialogs/qcolordialog.cpp | |
parent | a45da5d207431b77a9bfacbc1da1a50712c5d031 (diff) |
Re-use cached font engines when request only differs in script
When looking for engine of non-Common script and lookup in
the font cache failed, first check if we have already loaded that engine
for the same request but different script.
In general, this gives an arbitrary font engine a chance to be re-used
multiple times when request only differs in script, which saves a LOT
of memory (~10MB on my win7, after scrolling the QFontComboBox'es list).
Change-Id: I9c752ce65c27142237a0ed74b33742b6a8d90a24
Reviewed-by: Pierre Rossi <pierre.rossi@theqtcompany.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/widgets/dialogs/qcolordialog.cpp')
0 files changed, 0 insertions, 0 deletions