summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qrect.h
diff options
context:
space:
mode:
authorMorten Sørvig <morten.sorvig@qt.io>2025-11-20 16:47:57 +0100
committerMorten Sørvig <morten.sorvig@qt.io>2025-11-25 17:23:51 +0100
commit1eb5daffa6e232908a35a61520c262602f5c9cf4 (patch)
treed96c0788e871aeb91ee6f2caf8335d71671017a0 /src/corelib/tools/qrect.h
parenta5218f692c135ae88b5ae691d38e727b7c6eb9f6 (diff)
wasm: drive animations using requestAnimationFrameHEADdev
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/tools/qrect.h')
0 files changed, 0 insertions, 0 deletions