[Libreoffice-bugs] [Bug 138068] When there are a lot of pictures, typing the text is very slow (macOS/GTK3/GDI)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Feb 5 19:21:35 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=138068

Luboš Luňák <l.lunak at collabora.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |l.lunak at collabora.com

--- Comment #21 from Luboš Luňák <l.lunak at collabora.com> ---
The document from comment #4 spends its time in DrawTransformedBitmap(). The
problem is that if scaling is involved, it is left to Cairo to do it, and that
is done by the CPU, thus relatively slow, and moreover each redraw needs that
again and again. I don't know why the cache from Armin's change doesn't cache
it, Skia code manages to cache it just fine. Either that cache needs to get
fixed, or at least for the simple "at most translate+scale but no shear or
rotate" case the scaling should be done manually using BitmapEx::Scale(), which
should get cached. Skia's SkiaSalGraphicsImpl::drawTransformedBitmap() can be
used as an inspiration for that case.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210205/e262da77/attachment.htm>


More information about the Libreoffice-bugs mailing list