mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
ImmutableBitmap still owned the helper that read pixels from a PaintingSurface and wrapped the result as an ImmutableBitmap. That kept a surface readback operation attached to the type we are trying to remove, even though the snapshot is really a property of the painting surface. Add PaintingSurface::snapshot_bitmap() as the explicit readback path. The remaining callers now wrap that bitmap in ImmutableBitmap only at the places that still need the old abstraction. Canvas serialization also uses the same helper, so the BGRA8888 premultiplied snapshot policy has a single owner.
17 KiB
17 KiB