mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibWeb/Painting: Add SaveLayer
command
This adds a command for saving the current layer of the canvas. This is useful for painting content onto a blank background in isolation and later compositing it onto the canvas.
This commit is contained in:
parent
3e56e9e65d
commit
1898643ba4
Notes:
github-actions[bot]
2025-03-28 09:42:13 +00:00
Author: https://github.com/skyz1
Commit: 1898643ba4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3940
Reviewed-by: https://github.com/AtkinsSJ ✅
7 changed files with 17 additions and 0 deletions
|
@ -97,6 +97,7 @@ void DisplayListPlayer::execute(DisplayList& display_list)
|
|||
else HANDLE_COMMAND(DrawRepeatedImmutableBitmap, draw_repeated_immutable_bitmap)
|
||||
else HANDLE_COMMAND(AddClipRect, add_clip_rect)
|
||||
else HANDLE_COMMAND(Save, save)
|
||||
else HANDLE_COMMAND(SaveLayer, save_layer)
|
||||
else HANDLE_COMMAND(Restore, restore)
|
||||
else HANDLE_COMMAND(Translate, translate)
|
||||
else HANDLE_COMMAND(PushStackingContext, push_stacking_context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue