Reference count glyphs in QSGDistanceFieldGlyphCache.
authorYoann Lopes <yoann.lopes@nokia.com>
Thu, 15 Dec 2011 13:17:33 +0000 (14:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Dec 2011 11:16:25 +0000 (12:16 +0100)
commit3d8986d7475ef6fdd04ea1286d840d2b570133a0
tree66cec7e44c432c904b0e33dec4ce34ef622c7b67
parent0febfa03b62a4449c42ad1e675777b7b099ebaa3
Reference count glyphs in QSGDistanceFieldGlyphCache.

This was previously done only in the default cache implementation. It
has been moved to the base class.
releaseGlyphs() is called when a glyph is not referenced anymore by any
node.
Added a virtual function referenceGlyphs() that is called everytime glyphs
are being used in a node. This function is called just before
requestGlyphs().

Change-Id: If90f86c328c18ae2a5977847a6adf50b99ea1241
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