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:
Aliaksandr Kalenik 2024-07-24 16:48:32 +03:00 committed by Andreas Kling
parent 5a796629c6
commit e8b7c88881
Notes: github-actions[bot] 2024-07-25 12:34:47 +00:00
6 changed files with 41 additions and 33 deletions

View file

@ -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: