Compress touch events in QQuickWindow.
authorGunnar Sletta <gunnar.sletta@jollamobile.com>
Thu, 3 Apr 2014 11:16:42 +0000 (11:16 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 5 May 2014 14:02:45 +0000 (16:02 +0200)
commit6dc8f47bb05a8acb3cbcc697e0dc05356a01d4cf
tree81c7ebe9b3a55f2c8c4cdbc2fe6115024d145435
parentc87ae78dd78f4a8cee040b5d27e7a6f2425f3aaf
Compress touch events in QQuickWindow.

Instead of sending multiple touch updates per frame, we
store the last one and flush the pending events just before
we enter into the scene graph sync phase.

[ChangeLog][QtQuick] QQuickWindow will compresses touch events
and delivers at most one touch event per frame.

Done-with: Robin Burchell <robin.burchell@jollamobile.com>
Change-Id: Ia0169bc4a3f0da67709b91ca65c326934b55d372
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
20 files changed:
src/quick/items/qquickrendercontrol.cpp
src/quick/items/qquickwindow.cpp
src/quick/items/qquickwindow_p.h
src/quick/scenegraph/qsgrenderloop.cpp
src/quick/scenegraph/qsgthreadedrenderloop.cpp
src/quick/scenegraph/qsgthreadedrenderloop_p.h
src/quick/scenegraph/qsgwindowsrenderloop.cpp
tests/auto/quick/qquickflickable/tst_qquickflickable.cpp
tests/auto/quick/qquickitem/qquickitem.pro
tests/auto/quick/qquickitem/tst_qquickitem.cpp
tests/auto/quick/qquickmultipointtoucharea/qquickmultipointtoucharea.pro
tests/auto/quick/qquickmultipointtoucharea/tst_qquickmultipointtoucharea.cpp
tests/auto/quick/qquickpincharea/qquickpincharea.pro
tests/auto/quick/qquickpincharea/tst_qquickpincharea.cpp
tests/auto/quick/qquickwindow/qquickwindow.pro
tests/auto/quick/qquickwindow/tst_qquickwindow.cpp
tests/auto/quick/shared/viewtestutil.cpp
tests/auto/quick/shared/viewtestutil.h
tests/auto/quick/touchmouse/touchmouse.pro
tests/auto/quick/touchmouse/tst_touchmouse.cpp