Let SkBitmap determine when it is safe to delete the pixel buffer
commitd43e2a9214c0d06465a3027231948760e65ad4ee
authorPatrick Luby <plubius@neooffice.org>
Wed, 27 Sep 2023 14:29:05 +0000 (27 10:29 -0400)
committerPatrick Luby <plubius@neooffice.org>
Wed, 27 Sep 2023 17:25:59 +0000 (27 19:25 +0200)
treecb54ebf84d6490ad74a9ac60674439efb2306242
parent8eb53f735eba218b6911e7aa5a805972dfb54809
Let SkBitmap determine when it is safe to delete the pixel buffer

Also, make bitmap immutable to avoid making a copy in bitmap.asImage()
and, just to be safe, flush the canvas after drawing the pixel buffer.

Change-Id: I3ac99cf4acf0bf4c8b274dc73295ca7b9f386c70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157333
Tested-by: Jenkins
Reviewed-by: Patrick Luby <plubius@neooffice.org>
vcl/skia/osx/gdiimpl.cxx