mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Rename CommandList to DisplayList
Use more widely recognized name among browser engine developers.
This commit is contained in:
parent
c92f8ab1ea
commit
5570e6b648
Notes:
sideshowbarker
2024-07-17 11:33:34 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 5570e6b648
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/260
12 changed files with 34 additions and 34 deletions
|
@ -93,22 +93,22 @@ RefPtr<Gfx::Bitmap> SVGDecodedImageData::render(Gfx::IntSize size) const
|
|||
m_document->navigable()->set_viewport_size(size.to_type<CSSPixels>());
|
||||
m_document->update_layout();
|
||||
|
||||
Painting::CommandList painting_commands;
|
||||
Painting::RecordingPainter recording_painter(painting_commands);
|
||||
Painting::DisplayList display_list;
|
||||
Painting::RecordingPainter recording_painter(display_list);
|
||||
|
||||
m_document->navigable()->record_painting_commands(recording_painter, {});
|
||||
m_document->navigable()->record_display_list(recording_painter, {});
|
||||
|
||||
auto painting_command_executor_type = m_page_client->painting_command_executor_type();
|
||||
switch (painting_command_executor_type) {
|
||||
case PaintingCommandExecutorType::CPU:
|
||||
case PaintingCommandExecutorType::GPU: { // GPU painter does not have any path rasterization support so we always fall back to CPU painter
|
||||
Painting::CommandExecutorCPU executor { *bitmap };
|
||||
painting_commands.execute(executor);
|
||||
display_list.execute(executor);
|
||||
break;
|
||||
}
|
||||
case PaintingCommandExecutorType::Skia: {
|
||||
Painting::CommandExecutorSkia executor { *bitmap };
|
||||
painting_commands.execute(executor);
|
||||
display_list.execute(executor);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue