diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2020-07-27 12:18:55 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2020-07-27 14:48:29 +0200 |
commit | a9f68d9d9ae8d7c8f79152055795044993b252ea (patch) | |
tree | c695dad31992644b8310a03060d9c2d98e32d0c5 /translations | |
parent | 3395e0baa6350e6f9e093fe5af51d283f45fede7 (diff) |
don't duplicate large memory usage in SkiaSalBitmap (tdf#134342)
Since SkiaSalBitmap is required to support bitmap formats that
Skia itself doesn't support (1bpp, 4bpp, 24bpp,etc.), it needs
to store its own copy of the bitmap data and convert to SkImage
for use. With huge images this can lead to large duplicated
memory usage. Since the code can actually drop the buffer and
create it if needed (which it normally is not), just drop large
buffers after converting to SkImage.
Ideally SalBitmap should be able to say which bitmap formats it
supports and VCL code should oblige, which would allow reusing
the same data.
Change-Id: I98af62a51dde5d738cc8afcdd2fcdc25ff89952f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99476
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'translations')
0 files changed, 0 insertions, 0 deletions