aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2012-05-24 15:51:27 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-30 09:45:35 +0200
commit0b3f46014764d6e35da321bbba2d0232ec99d1b1 (patch)
tree9d95514139075fa069acb69b451afd320838ff4f /src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h
parentf7e3a33cb80f3cc289aea9e59f53111d730b5927 (diff)
Uses new batching API to potentially speed up glyph cache
Give the cache information that a burst of requests/releases are coming, so it can potentially optimize this. Change-Id: Icfb591a63075c2f1e93bf269402649116de9e5be Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h')
-rw-r--r--src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h b/src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h
index 2d43246bb0..fd1f28f7d5 100644
--- a/src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h
+++ b/src/quick/scenegraph/qsgshareddistancefieldglyphcache_p.h
@@ -86,6 +86,9 @@ private Q_SLOTS:
const QVector<QPoint> &positions);
void reportItemsInvalidated(const QByteArray &cacheId, const QVector<quint32> &itemIds);
+ void sceneGraphUpdateStarted();
+ void sceneGraphUpdateDone();
+
private:
void waitForGlyphs();
void saveTexture(GLuint textureId, int width, int height);
@@ -122,6 +125,9 @@ private:
QHash<quint32, PendingGlyph> m_pendingReadyGlyphs;
QHash<glyph_t, void *> m_bufferForGlyph;
QHash<QQuickItem *, Owner> m_registeredOwners;
+
+ bool m_isInSceneGraphUpdate;
+ bool m_hasPostedEvents;
};
QT_END_NAMESPACE