summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-12-15 12:59:25 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-12-15 16:03:27 +0100
commit0e5b473a63409da2cdae4f4c60a91fcc93755ba5 (patch)
tree7eaa634d6859d608c7df4718462a7a1a139f6f43 /framework
parente90e694ec35d4b634b06ef53e2131c0042a0fa2e (diff)
do not free SkiaSalBitmap buffer if a read access points to it
When conserving memory in raster mode, SkiaSalBitmap may decide to drop the pixel buffer if SkImage is created from it, since having both wastes memory and converting between them is cheap. But if there is still a Bitmap::ScopedReadAccess existing for the bitmap (e.g. VclCanvasBitmap keeps it as a member), then dropping the pixel buffer would make the data pointed to by the read access invalid. Technically this patch should distinguish between info and read accesses, as info accesses do not point to pixels, but this is simpler and hopefully doesn't make a difference in practice. Change-Id: I307170ad4651b849feda0cf224976ca5a87e5207 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107752 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'framework')
0 files changed, 0 insertions, 0 deletions