qt5base-lts/src/gui
Eskil Abrahamsen Blomfeldt 89a25a3ef1 Don't count all engines as "in use" in cache
Back in 36cb3f3f65, we started
properly reference counting font engines as they were entered into
the font cache. Prior to this, ref.load == 0 would mean that the
engine was essentially owned by the cache.

When the change was made, the condition that an engine must be in
use if its reference is != 0 remained, and the result of this was
used to calculate the limit for when the cache should be flushed.

Since this limit was miscalculated, the cache would keep growing,
even if it only contained unused font engines.

[ChangeLog][QtGui][Text] Fixed a bug which could cause the font
cache to grow larger than it was supposed to.

Task-number: QTBUG-76219
Change-Id: I4d1541756f3bdf5bd9b0301bf47c6db2e220716a
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2019-06-09 20:16:55 +02:00
..
accessible Documentation: Add \nullptr macro and use where applicable 2019-01-10 22:16:07 +00:00
animation Modernize the "animation" feature 2018-10-12 14:26:15 +00:00
doc Document how to use CMake on Qt Core, Qt GUI's central pages 2019-05-07 07:46:21 +00:00
image png handler: initialize all the variables passed to png_get_IHDR 2019-04-05 08:53:01 +00:00
itemmodels Documentation: Add \nullptr macro and use where applicable 2019-01-10 22:16:07 +00:00
kernel doc: Correct several QEnterEvent accessors 2019-06-06 14:49:51 +02:00
math3d Doc: Move literal code block to a separate file 2018-10-15 10:55:18 +00:00
opengl Fix swizzling when rendering QPainter on QOpenGLWidget with Angle 2019-05-07 09:56:17 +00:00
painting Guard against numerical overflow when processing QPainterPaths 2019-05-15 13:50:55 +02:00
text Don't count all engines as "in use" in cache 2019-06-09 20:16:55 +02:00
util Only generate temporaries when it makes sense 2019-05-02 12:47:05 +00:00
vulkan Doc: Move literal code block to a separate file 2018-10-15 10:55:18 +00:00
configure.json configure: skip Freetype/Fontconfig autodetection only on MSVC 2019-05-03 17:00:42 +00:00
configure.pri Fix determination of OpenGL include paths on macOS, take 3 2019-04-27 07:32:53 +00:00
gui.pro Modernize the "animation" feature 2018-10-12 14:26:15 +00:00
Qt5GuiConfigExtras.cmake.in Fix generation of the Qt5::GLESv2 target on ARM 2019-03-05 13:31:42 +00:00
QtGui.dynlist Add dynlist file for QtGui 2013-03-18 17:11:04 +01:00
qtgui.tracepoints Don't pass scope args to _exit trace points 2019-04-30 07:42:19 +00:00