diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2016-06-01 13:29:28 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2016-06-17 13:18:11 +0000 |
commit | 0b6adbcd234724edef747df4d17aa7a5bcf4381b (patch) | |
tree | bb090f3efee678dc71b20bcf5c7875bb9c555e01 /src/plugins/platforms/ios/qioswindow.mm | |
parent | fc1092cfad06a843c24b64afeb0d928e4e318372 (diff) |
uikit: Deliver update requests via CADisplayLink callback
Improves performance over the default timer-implementation, and allows
us to control the rate and paused state of the display link.
Change-Id: I05761b6eb48f5e91af35735e2faa477427cd8440
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/plugins/platforms/ios/qioswindow.mm')
-rw-r--r-- | src/plugins/platforms/ios/qioswindow.mm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/ios/qioswindow.mm b/src/plugins/platforms/ios/qioswindow.mm index 3045a15380..42609fd983 100644 --- a/src/plugins/platforms/ios/qioswindow.mm +++ b/src/plugins/platforms/ios/qioswindow.mm @@ -371,6 +371,11 @@ void QIOSWindow::clearAccessibleCache() [m_view clearAccessibleCache]; } +void QIOSWindow::requestUpdate() +{ + static_cast<QIOSScreen *>(screen())->setUpdatesPaused(false); +} + #include "moc_qioswindow.cpp" QT_END_NAMESPACE |