diff options
author | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-07-04 23:50:50 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@jollamobile.com> | 2014-07-29 19:13:39 +0200 |
commit | 15ce5d915b6bda4bf1d3c85cbdc79b2e11690bca (patch) | |
tree | 83668da1212904d81a73208211861c36a74261ee /src/quick/items/qquickwindow_p.h | |
parent | 9c67029ee5aca18ae02e740afbf6d0f883799ebd (diff) |
Introducing QQuickWindow::scheduleRenderJob()
[ChangeLog][QtQuick][QQuickWindow] Added
QQuickWindow::scheduleRenderJob(), a convenience alternative to the
equivalent signals for one-shot tasks.
Change-Id: I5e4f0d67d5223f7fd77bca394e2a85810fadd335
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/quick/items/qquickwindow_p.h')
-rw-r--r-- | src/quick/items/qquickwindow_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quick/items/qquickwindow_p.h b/src/quick/items/qquickwindow_p.h index 8faaf6489b..66202aec5c 100644 --- a/src/quick/items/qquickwindow_p.h +++ b/src/quick/items/qquickwindow_p.h @@ -256,6 +256,15 @@ public: static bool defaultFormatInitialized; static QSurfaceFormat defaultFormat; + QMutex renderJobMutex; + QList<QRunnable *> beforeSynchronizingJobs; + QList<QRunnable *> afterSynchronizingJobs; + QList<QRunnable *> beforeRenderingJobs; + QList<QRunnable *> afterRenderingJobs; + QList<QRunnable *> afterSwapJobs; + + void runAndClearJobs(QList<QRunnable *> *jobs); + private: static void cleanupNodesOnShutdown(QQuickItem *); }; |