Decouple QSGDistanceFieldGlyphNode from it's cache manager.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 5 Mar 2012 08:19:20 +0000 (18:19 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Mar 2012 11:35:18 +0000 (12:35 +0100)
commitdfdea38c843d1ee915e10ee72e6371ced7cd9bd0
tree18317f2fd1ac7e64979283f20dea69fc063563d5
parente20c3516945269a43d070809c08e9797c329306d
Decouple QSGDistanceFieldGlyphNode from it's cache manager.

To implement a custom distance field glyph node currently it's
necessary to also provide a duplicate implementation of
QSGContext::createDistanceFieldGlyphCache() as the default implemention
references the cache manager created by createGlyphNode().  By isolating
references to the cache manager to just createDistanceFieldGlyph() cache
it becomes possible to just overwrite createGlyphNode() and still use
the default cache.

Change-Id: I7261bdbf247966b55512d2671e2ee85239bcca05
Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
src/quick/scenegraph/qsgadaptationlayer.cpp
src/quick/scenegraph/qsgadaptationlayer_p.h
src/quick/scenegraph/qsgcontext.cpp
src/quick/scenegraph/qsgcontext_p.h
src/quick/scenegraph/qsgdistancefieldglyphnode.cpp
src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
src/quick/scenegraph/qsgdistancefieldglyphnode_p_p.h
src/quick/scenegraph/util/qsgdistancefieldutil.cpp
src/quick/scenegraph/util/qsgdistancefieldutil_p.h