aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@nokia.com>2011-05-24 11:43:17 +0200
committerYoann Lopes <yoann.lopes@nokia.com>2011-05-24 11:43:17 +0200
commit2d69163a2819f72c5b18c5dd483976a54c797b81 (patch)
tree9c26f99fee00cc0d427fcab0e298f7cb4f94c56f /src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
parent780097f270c40814691459396661ebed90285ab8 (diff)
Small optimizations in distance-field cache.
Diffstat (limited to 'src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h')
-rw-r--r--src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h b/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
index 5ee439552a..f7e2d9367e 100644
--- a/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
+++ b/src/declarative/scenegraph/qsgdistancefieldglyphcache_p.h
@@ -47,6 +47,7 @@
#include <private/qgl_p.h>
#include <private/qfont_p.h>
#include <private/qfontengine_p.h>
+#include <QtGui/private/qdatabuffer_p.h>
QT_BEGIN_NAMESPACE
@@ -126,7 +127,7 @@ private:
GLuint fbo;
QSize size;
QHash<glyph_t, TexCoord> texCoords;
- QSet<glyph_t> pendingGlyphs;
+ QDataBuffer<glyph_t> pendingGlyphs;
QHash<glyph_t, quint32> glyphRefCount;
QSet<glyph_t> unusedGlyphs;
int currX;
@@ -137,6 +138,7 @@ private:
DistanceFieldTextureData(const QGLContext *)
: texture(0)
, fbo(0)
+ , pendingGlyphs(64)
, currX(0)
, currY(0)
, doubleGlyphResolution(false)