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>