diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-02 13:25:07 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-03 07:10:42 (GMT) |
commit | fa95af38594b09718b9eb9048b75b9628dc9a0da (patch) | |
tree | 81e0817af46beaaf9684127f32a3462faaa79c89 /src/gui/painting/qtextureglyphcache_p.h | |
parent | d37de8e085bdc3ee5d0185b403879bac485ef834 (diff) | |
download | Qt-fa95af38594b09718b9eb9048b75b9628dc9a0da.zip Qt-fa95af38594b09718b9eb9048b75b9628dc9a0da.tar.gz Qt-fa95af38594b09718b9eb9048b75b9628dc9a0da.tar.bz2 |
Implemented QGLTextureGlyphCache to avoid wasting glyph cache memory.
Now there's only a copy of the texture glyph cache in graphics memory,
avoiding the system memory copy that we used earlier. In addition the
texture will use the GL_ALPHA texture format when possible, making it
consume less graphics memory as well.
Reviewed-by: Tom
Diffstat (limited to 'src/gui/painting/qtextureglyphcache_p.h')
-rw-r--r-- | src/gui/painting/qtextureglyphcache_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qtextureglyphcache_p.h b/src/gui/painting/qtextureglyphcache_p.h index 7f2c478..cb5be75 100644 --- a/src/gui/painting/qtextureglyphcache_p.h +++ b/src/gui/painting/qtextureglyphcache_p.h @@ -108,6 +108,8 @@ public: QHash<glyph_t, Coord> coords; + QImage textureMapForGlyph(glyph_t g) const; + protected: const QTextItemInt *m_current_textitem; @@ -116,7 +118,6 @@ protected: int m_cx; // current x int m_cy; // current y QFontEngineGlyphCache::Type m_type; - }; |