More distance-field cache refactoring.
authorYoann Lopes <yoann.lopes@nokia.com>
Tue, 13 Dec 2011 10:18:33 +0000 (11:18 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 14 Dec 2011 08:06:21 +0000 (09:06 +0100)
commit17bffaa4d447959f08e16ca9a45885f631a16cc0
treed5a014dd626e2fc07179938eedde661357cb5663
parent22a8387aeab93fd086b297443945487677aef280
More distance-field cache refactoring.

The distance field glyph node now uses preprocess().
The glyph cache is updated at that time, then when all the glyphs are
ready the node's geometry is updated.

addGlyphPositions and addGlyphTextures in QSGDistanceFieldGlyphCache
have been renamed to setGlyphsPosition and setGlyphsTexture to reflect the
fact that they can be used to update existing glyphs. For example when
a glyph has moved to a different texture.
When an existing glyph is updated, all nodes containing that glyph are
invalidated and their geometries are reconstructed with the new values.

Change-Id: I7758313155f48811e6027434e6c9a1c3df5dfab7
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/qsgdistancefieldglyphnode.cpp
src/quick/scenegraph/qsgdistancefieldglyphnode_p.cpp
src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
src/quick/scenegraph/qsgdistancefieldglyphnode_p_p.h