diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2012-05-24 15:51:27 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-30 09:45:35 +0200 |
commit | 0b3f46014764d6e35da321bbba2d0232ec99d1b1 (patch) | |
tree | 9d95514139075fa069acb69b451afd320838ff4f /src/quick/items/qquickcanvas.cpp | |
parent | f7e3a33cb80f3cc289aea9e59f53111d730b5927 (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/items/qquickcanvas.cpp')
-rw-r--r-- | src/quick/items/qquickcanvas.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/quick/items/qquickcanvas.cpp b/src/quick/items/qquickcanvas.cpp index 248195127f..08f9b4423f 100644 --- a/src/quick/items/qquickcanvas.cpp +++ b/src/quick/items/qquickcanvas.cpp @@ -282,6 +282,9 @@ void forceUpdate(QQuickItem *item) void QQuickCanvasPrivate::syncSceneGraph() { QML_MEMORY_SCOPE_STRING("SceneGraph"); + Q_Q(QQuickCanvas); + + emit q->beforeSynchronizing(); if (!renderer) { forceUpdate(rootItem); @@ -787,6 +790,11 @@ void QQuickCanvasPrivate::cleanup(QSGNode *n) \list + \li The QQuickCanvas::beforeSynchronizing() signal is emitted. + Applications can make direct connections (Qt::DirectConnection) + to this signal to do any preparation required before calls to + QQuickItem::updatePaintNode(). + \li Synchronzation of the QML state into the scene graph. This is done by calling the QQuickItem::updatePaintNode() function on all items that have changed since the previous frame. When a dedicated |