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:
Glenn Skrzypczak 2025-03-20 15:25:28 +01:00 committed by Sam Atkins
commit 1898643ba4
Notes: github-actions[bot] 2025-03-28 09:42:13 +00:00
7 changed files with 17 additions and 0 deletions

View file

@ -40,6 +40,7 @@ private:
virtual void draw_scaled_immutable_bitmap(DrawScaledImmutableBitmap const&) = 0;
virtual void draw_repeated_immutable_bitmap(DrawRepeatedImmutableBitmap const&) = 0;
virtual void save(Save const&) = 0;
virtual void save_layer(SaveLayer const&) = 0;
virtual void restore(Restore const&) = 0;
virtual void translate(Translate const&) = 0;
virtual void add_clip_rect(AddClipRect const&) = 0;