Use a single distance-field cache instance for all sizes of a given font.
authorYoann Lopes <yoann.lopes@nokia.com>
Fri, 16 Mar 2012 11:09:29 +0000 (12:09 +0100)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 17:28:52 +0000 (18:28 +0100)
commitb271abeaf11c9fe0a05d8405f03f6a20218214ed
tree6f63cbcc6acab91e4d804c718c003c2e189d3a7d
parent3bf01de85d943432d66b5fa8048275817fd20020
Use a single distance-field cache instance for all sizes of a given font.

Previously we had a different cache instance for each font size, but
they all shared the same textures and positions. Only the glyph metrics
were specific to each font size.
The metrics for each font sizes are now calculated by scaling the metrics
of the distance-field size (54px).

Change-Id: I0d9016990dedd93318893506afb1dba7a5249e2e
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/quick/scenegraph/qsgadaptationlayer.cpp
src/quick/scenegraph/qsgadaptationlayer_p.h
src/quick/scenegraph/qsgdefaultdistancefieldglyphcache.cpp
src/quick/scenegraph/qsgdefaultdistancefieldglyphcache_p.h
src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp
src/quick/scenegraph/qsgdistancefieldglyphnode_p_p.h
src/quick/scenegraph/util/qsgdistancefieldutil.cpp
src/quick/scenegraph/util/qsgdistancefieldutil_p.h