diff options
| author | Morten Sørvig <morten.sorvig@qt.io> | 2025-11-20 16:47:57 +0100 |
|---|---|---|
| committer | Morten Sørvig <morten.sorvig@qt.io> | 2025-11-25 17:23:51 +0100 |
| commit | 1eb5daffa6e232908a35a61520c262602f5c9cf4 (patch) | |
| tree | d96c0788e871aeb91ee6f2caf8335d71671017a0 /src/corelib/thread/qfuturewatcher.h | |
| parent | a5218f692c135ae88b5ae691d38e727b7c6eb9f6 (diff) | |
Drive QAbstractAnimaton-based animations using RAF.
This has two main benefits:
* The animation update rate automatically adapts
to the screen refresh rate
* The animation update happens in sync with the
draw callback, instead of as an extra wakeup in
between frames.
Add QWasmAnimationDriver, which replaces QDefaultAnimationDriver
for Q_OS_WASM.
Add QWasmAnimationFrameMultiHandler. This class supports
multiplexing multiple animation and draw callbacks to
a single native requestAnimation call. It also orders
the callbacks such that animation callbacks are called
before draw callbacks.
Make QWindow::requestUpdate() use the new multi-handler
(via QWasmCompositor, as before)
Fixes: QTBUG-133695
Change-Id: I0a3fda562a7ba2e8d659d707335d1ce116f71bd9
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Even Oscar Andersen <even.oscar.andersen@qt.io>
Diffstat (limited to 'src/corelib/thread/qfuturewatcher.h')
0 files changed, 0 insertions, 0 deletions
