Avoid redundant per-glyph QRawFont/GlyphData cache lookups in fillText


QCRhiDistanceFieldGlyphCache::m_rawFontCache[m_referenceFont] was
re-hashed on every glyph (fontScale, distanceFieldRadius, populate,
update, glyphData) even though it only changes when setRawFont() sees
a genuinely different font; cache the resolved ReferenceFont once
there instead. generateVertices() and the eviction path in
requestGlyphs() also each did two separate glyphData() lookups for
the same glyph index - now just one. Confirmed via callgrind on the
emoji text_performance benchmark: qHash(QRawFont) and the
QHash<QRawFont,ReferenceFont> bucket lookup drop out of the per-glyph
hot path entirely.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Pick-to: 6.12
Change-Id: If677129b71b4db70901cdec21b2dbaf324d98ce1
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit56435de74ebd105035d83f6011a96821a0165fd1
parent83e6d179de2ff319979aa8845fadf37782924376
authorPaul Olav Tvete <paul.tvete@qt.io>
committerPaul Olav Tvete <paul.tvete@qt.io>
commit timeWed, 5 Aug 2026 14:31:21 +0000