diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-07-12 07:54:40 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-07-12 08:17:03 (GMT) |
commit | d193933b31088f83358a657f0399c6eeae2467e2 (patch) | |
tree | f22152c77331801afcd9c8989175c2f02485cc42 /src/gui/text/qfontengineglyphcache_p.h | |
parent | f8e2daddc56afa9e601c14a3e25be5316c2a6d69 (diff) | |
download | Qt-d193933b31088f83358a657f0399c6eeae2467e2.zip Qt-d193933b31088f83358a657f0399c6eeae2467e2.tar.gz Qt-d193933b31088f83358a657f0399c6eeae2467e2.tar.bz2 |
Make QFontEngineGlyphCache explicitly shared
QFontEngine will delete its glyph cache (and if it's a GL engine, its
texture) when the font engine dies. The font engine can die when the
QFontCache decides to clean it up, e.g. based on the trigger of a timer.
To make it possible to use the glyph cache elsewhere, without
interference by the font cache, it has been made explicitly shared.
Reviewed-by: Kim
Diffstat (limited to 'src/gui/text/qfontengineglyphcache_p.h')
-rw-r--r-- | src/gui/text/qfontengineglyphcache_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengineglyphcache_p.h b/src/gui/text/qfontengineglyphcache_p.h index 7b82b46..eba16f7 100644 --- a/src/gui/text/qfontengineglyphcache_p.h +++ b/src/gui/text/qfontengineglyphcache_p.h @@ -72,7 +72,7 @@ QT_BEGIN_NAMESPACE -class QFontEngineGlyphCache +class QFontEngineGlyphCache: public QSharedData { public: enum Type { |