summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs/qcolordialog.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2014-12-19 06:59:31 +0400
committerKonstantin Ritt <ritt.ks@gmail.com>2014-12-23 14:57:37 +0100
commita0742ad6ce8bb85b128246b8c2256e1b24ece4e8 (patch)
treea4d7c22c3297da97852d85f11fbc7b7be9671876 /src/widgets/dialogs/qcolordialog.cpp
parenta45da5d207431b77a9bfacbc1da1a50712c5d031 (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