ladybird icon indicating copy to clipboard operation
ladybird copied to clipboard

LibGfx: Use Skia to speed up alpha conversions on Linux

Open tcl3 opened this issue 2 months ago • 0 comments

When profiling bbc.co.uk, this reduces the time spent in Bitmap::set_alpha_destructive() from 4.13% to 3.65%. This is not as much of a speed-up as I hoped for, but I thought I'd PR it anyway, since it is definitely faster.

The SkPixmap methods still use the CPU, ideally we should find a way to do this conversion on the GPU if possible.

EDIT: I was able to improve performance significantly by not attempting to alter opaque images.

tcl3 avatar Nov 05 '25 10:11 tcl3