summaryrefslogtreecommitdiff
path: root/scp2/source/impress/registryitem_impress.scp
diff options
context:
space:
mode:
authorPatrick Luby <guibmacdev@gmail.com>2025-02-28 22:52:13 -0500
committerPatrick Luby <guibomacdev@gmail.com>2025-03-01 18:54:26 +0100
commit0ed6480f563c0f7f5601fb2045c5be2bafd226db (patch)
tree6a67c3c8469cd9fc1770d04483e0efd6d7bfe94e /scp2/source/impress/registryitem_impress.scp
parentdec9f7d5b2d72e83f4feb81bc8845bca506bbe20 (diff)
tdf#165277 On macOS, only delay priorities lower than POST_PAINT HEADmaster
macOS bugs tdf#157312 and tdf#163945 were fixed by firing the Skia flush task with TaskPriority::POST_PAINT. The problem is that this method often executes within an NSTimer and NSTimers are always fired while LibreOffice is in -[NSApp nextEventMatchingMask:untilDate:inMode:dequeue:]. Since fetching the next native event doesn't handle pending events until *after* all of the pending NSTimers have fired, calling SalInstance::AnyInput() will almost always return true due to the pending events that will be handled immediately after all of the the pending NSTimers have fired. The result is that the Skia flush task is frequently delayed and, in cases like tdf#165277, a user's attempts to get LibreOffice to paint the window through key and mouse events leads to an endless delaying of the Skia flush task. After experimenting with both Skia/Metal and Skia/Raster, tdf#165277 requires the Skia flush task to run immediately before the TaskPriority::POST_PAINT tasks. After that, all TaskPriority::POST_PAINT tasks must run so the Skia flush task now uses the TaskPriority::SKIA_FLUSH priority on macOS. One positive side effect of this change is that live resizing on macOS is now much smoother. Even with Skia disabled (which does not paint using a task but does use tasks to handle live resizing), the content resizes much more quickly when a user repidly changes window's size. Change-Id: I727b2d215382dbd2ebc2608d401f8b5c0dd49773 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182380 Reviewed-by: Patrick Luby <guibomacdev@gmail.com> Tested-by: Jenkins
Diffstat (limited to 'scp2/source/impress/registryitem_impress.scp')
0 files changed, 0 insertions, 0 deletions