mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 18:00:31 +00:00
LibWeb: Snapshot SVG surface into ImmutableBitmap before painting
The last consumer of draw_painting_surface now snapshots the surface into an ImmutableBitmap and uses draw_scaled_immutable_bitmap instead, removing the final dependency on DrawPaintingSurface.
This commit is contained in:
parent
004e5f851e
commit
d9e04ec9e8
Notes:
github-actions[bot]
2026-02-20 17:42:44 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: d9e04ec9e8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8037
1 changed files with 2 additions and 2 deletions
|
|
@ -223,8 +223,8 @@ void SVGDecodedImageData::paint(DisplayListRecordingContext& context, size_t, Gf
|
|||
if (!surface)
|
||||
return;
|
||||
|
||||
Gfx::IntRect src_rect(0, 0, dst_rect.width(), dst_rect.height());
|
||||
context.display_list_recorder().draw_painting_surface(dst_rect, *surface, src_rect, scaling_mode);
|
||||
auto snapshot = Gfx::ImmutableBitmap::create_snapshot_from_painting_surface(*surface);
|
||||
context.display_list_recorder().draw_scaled_immutable_bitmap(dst_rect, dst_rect, *snapshot, scaling_mode);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue