diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-09-18 20:16:16 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-21 22:23:13 +0200 |
commit | a0f8be4021caa9bb5055923f0eea3bee0e345235 (patch) | |
tree | cf33dd92e8284f5692e65b1a574749d50da4a3f0 /src/quick/util/qquickanimation_p.h | |
parent | 0fc040ef70513ccaeb9e96f7ca05a3df4d6c7879 (diff) |
Animators - Render thread animation system
This introduces 6 new QML types for animating state in the
scene graph when the UI thread is blocked. The QObject property
being animated is updated after the animation completes.
It works also with the "windows" and "basic" render loops, but
offer litte benefit then compared to in the "threaded" case.
Change-Id: Ic19e47c898c0b8bd53e457db922b3c9c457c8147
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/quick/util/qquickanimation_p.h')
-rw-r--r-- | src/quick/util/qquickanimation_p.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/quick/util/qquickanimation_p.h b/src/quick/util/qquickanimation_p.h index 82d1ba269e..8851bed969 100644 --- a/src/quick/util/qquickanimation_p.h +++ b/src/quick/util/qquickanimation_p.h @@ -73,6 +73,12 @@ class Q_QUICK_PRIVATE_EXPORT QQuickAbstractAnimation : public QObject, public QQ Q_CLASSINFO("DefaultMethod", "start()") public: + enum ThreadingModel { + GuiThread, + RenderThread, + AnyThread + }; + QQuickAbstractAnimation(QObject *parent=0); virtual ~QQuickAbstractAnimation(); @@ -102,6 +108,8 @@ public: void classBegin(); void componentComplete(); + virtual ThreadingModel threadingModel() const; + Q_SIGNALS: void started(); void stopped(); @@ -421,6 +429,7 @@ public: virtual ~QQuickSequentialAnimation(); protected: + virtual ThreadingModel threadingModel() const; virtual QAbstractAnimationJob* transition(QQuickStateActions &actions, QQmlProperties &modified, TransitionDirection direction, @@ -437,6 +446,7 @@ public: virtual ~QQuickParallelAnimation(); protected: + virtual ThreadingModel threadingModel() const; virtual QAbstractAnimationJob* transition(QQuickStateActions &actions, QQmlProperties &modified, TransitionDirection direction, |