aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/qsgcanvas.cpp
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-05-05 11:29:03 +1000
committerAlan Alpert <alan.alpert@nokia.com>2011-05-05 11:29:03 +1000
commit5f46c8e70f8891cb8702bf4c5949d3595b193660 (patch)
tree92106b292ace88089bf784ad55ee3d833a6c3ffb /src/declarative/items/qsgcanvas.cpp
parent3ea78d14ec04e7d39dd8848eef5ba4daf527d841 (diff)
parentcff3c25ee616a7aee7bf1c0f983a190415668f5f (diff)
Merge branch 'qtquick2' of scm.dev.nokia.troll.no:qt/qtdeclarative-staging into qtquick2
Diffstat (limited to 'src/declarative/items/qsgcanvas.cpp')
-rw-r--r--src/declarative/items/qsgcanvas.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/declarative/items/qsgcanvas.cpp b/src/declarative/items/qsgcanvas.cpp
index 5fc5c76d1d..5d5c49d981 100644
--- a/src/declarative/items/qsgcanvas.cpp
+++ b/src/declarative/items/qsgcanvas.cpp
@@ -48,6 +48,8 @@
#include <private/qsgrenderer_p.h>
#include <private/qsgflashnode_p.h>
+#include <private/qabstractanimation_p.h>
+
#include <QtGui/qpainter.h>
#include <QtGui/qgraphicssceneevent.h>
#include <QtGui/qmatrix4x4.h>
@@ -60,6 +62,7 @@
QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(qmlThreadedRenderer, QML_THREADED_RENDERER)
+DEFINE_BOOL_CONFIG_OPTION(qmlFixedAnimationStep, QML_FIXED_ANIMATION_STEP)
/*
Focus behavior
@@ -332,8 +335,8 @@ void QSGCanvasPrivate::renderSceneGraph()
#ifdef FRAME_TIMING
- int pixel;
- glReadPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixel);
+// int pixel;
+// glReadPixels(0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, &pixel);
readbackTime = frameTimer.elapsed();
#endif
@@ -477,6 +480,8 @@ QSGCanvasPrivate::~QSGCanvasPrivate()
void QSGCanvasPrivate::init(QSGCanvas *c)
{
+ QUnifiedTimer::instance(true)->setConsistentTiming(qmlFixedAnimationStep());
+
q_ptr = c;
Q_Q(QSGCanvas);