summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2019-05-08 09:23:52 +0200
committerMorten Johan Sørvig <morten.sorvig@qt.io>2022-01-05 21:25:38 +0100
commiteb62b6ac02b86f11bc6bcbe1f37df003d2a46d02 (patch)
treeaad695a330fed62248e9307e6c402be265739c59 /tests/manual
parente3e2674100b1ecbad7117f15c7aa13a704a7d34e (diff)
wasm: always use requestAnimationFrame for updates
The compositor was posting update events and flushing/redrawing using a zero-timer. Change this to use the request_animation_frame API from Emscripten, which makes sure we flush window content at the next native paint event. This has the additional benefit that hidden canvases (e.g on hidden tabs) won’t get frame events, and then stop painting. We support both well-behaved QWindows, where the window calls requestUpate() and then paints/flushes on the following deliverUpdateRequest(), and also less well behaved windows which paints at any point during event processing. Pick-to: 6.3 Change-Id: I747d6f7ace86ceddaa18ab86b6a0ee833f98991b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Diffstat (limited to 'tests/manual')
0 files changed, 0 insertions, 0 deletions