Support for variable glyph width in QSGDefaultDistanceFieldGlyphCache.
authorYoann Lopes <yoann.lopes@nokia.com>
Wed, 6 Jun 2012 15:52:19 +0000 (17:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 8 Jun 2012 11:11:24 +0000 (13:11 +0200)
commit2fdc5e044c967ac7044a3b5814110469da20f6e4
treea216d38886929766cb96421d7664f34d30dd1ce7
parent1535da8a5923b5829b945cc9fd1dee4cdfbcfe5e
Support for variable glyph width in QSGDefaultDistanceFieldGlyphCache.

The glyphs are not stored in a fixed 64x64px tile anymore.
Glyphs are stored in area equal to <glyph_width> + 10 (margin) x 64px.
Allocation is now done with QSGAreaAllocator.
When glyph recycling is needed, unused glyphs are freed until the new
glyph can fit in the cache.

Change-Id: I179a8f17bfe35468bdb63bca5113ea4d0f06c414
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
src/quick/scenegraph/qsgadaptationlayer.cpp
src/quick/scenegraph/qsgadaptationlayer_p.h
src/quick/scenegraph/qsgdefaultdistancefieldglyphcache.cpp
src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h