summaryrefslogtreecommitdiffstats
path: root/cmake/QtTestHelpers.cmake
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-11-20 13:45:47 +0100
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2023-11-22 14:42:17 +0000
commitdb6f7908d01134eb2f20e9b2122d4d47456db6c9 (patch)
tree0a68cc79823b81928b5b78982471d874bcf3f813 /cmake/QtTestHelpers.cmake
parent1248979968435c9d35db4c5ca53282a31f40bb51 (diff)
Fix cache cost on DirectWrite font engines
In Qt 6, we deferred getting the ascent/descent of the font until requested. This was used to calculate the cache cost of the font engine, so as an unintended result, the DirectWrite engines were seen as extremely cheap in the font cache, and we would accumulate thousands of them before triggering a flush. The cache_cost is just a heuristic and does not need to be accurate. For most engines, we should just flush when the number of cached fonts exceed 256, so we use the basic em square of a lowercase letter as the cost here instead. Pick-to: 6.5 6.6 Change-Id: I73a65cab38adfd9ef56e436f311a7d1a2d7fbf41 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'cmake/QtTestHelpers.cmake')
0 files changed, 0 insertions, 0 deletions