mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 21:41:58 +00:00
LibWeb: Move display list command dispatch into player
With this change display list player will be able to recurse into executing another display list, without having to construct new display list player. It is going to be useful in the upcoming changes to paint a mask from a display list owned by a command.
This commit is contained in:
parent
5a796629c6
commit
e8b7c88881
Notes:
github-actions[bot]
2024-07-25 12:34:47 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: e8b7c88881
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/826
6 changed files with 41 additions and 33 deletions
|
@ -101,8 +101,8 @@ RefPtr<Gfx::Bitmap> SVGDecodedImageData::render(Gfx::IntSize size) const
|
|||
switch (painting_command_executor_type) {
|
||||
case DisplayListPlayerType::SkiaGPUIfAvailable:
|
||||
case DisplayListPlayerType::SkiaCPU: {
|
||||
Painting::DisplayListPlayerSkia executor { *bitmap };
|
||||
display_list.execute(executor);
|
||||
Painting::DisplayListPlayerSkia display_list_player { *bitmap };
|
||||
display_list_player.execute(display_list);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue