aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-03-02 17:43:44 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-14 16:45:30 +0100
commita06936e5037c017248a9eefa9378cebfd6b2f5c1 (patch)
tree7ec23523f3e107c2336b6f7cc80989ef422fd20d /src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
parente1d688a23707b2c093294eea365bdf0d087b3f3c (diff)
Don't store duplicate glyph data in a distance field node.
This saves at least 16 bytes per character and removes the need to copy data between representations. Change-Id: Ia8236207bdc4ed8292f7b4c72093ee02d13c0463 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgdistancefieldglyphnode_p.h')
-rw-r--r--src/quick/scenegraph/qsgdistancefieldglyphnode_p.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.h b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
index 65ac2d499c..9406ee1bc8 100644
--- a/src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
+++ b/src/quick/scenegraph/qsgdistancefieldglyphnode_p.h
@@ -96,11 +96,10 @@ private:
QList<QSGDistanceFieldGlyphNode *> m_nodesToDelete;
struct GlyphInfo {
- quint32 glyphIndex;
- QPointF position;
+ QVector<quint32> indexes;
+ QVector<QPointF> positions;
};
QSet<quint32> m_allGlyphIndexesLookup;
- QList<GlyphInfo> m_allGlyphs;
uint m_dirtyGeometry: 1;
uint m_dirtyMaterial: 1;