mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 15:44:45 +00:00
Everywhere: Remove GPU painter and AccelGfx
GPU painter that uses AccelGfx is slower and way less complete compared to both default Gfx::Painter and Skia painter. It does not make much sense to keep it, considering Skia painter already uses Metal backend on macOS by default and there is an option to enable GPU-accelerated backend on linux.
This commit is contained in:
committed by
Andreas Kling
parent
9dd14c6a7f
commit
830b287c46
@@ -100,8 +100,7 @@ RefPtr<Gfx::Bitmap> SVGDecodedImageData::render(Gfx::IntSize size) const
|
||||
|
||||
auto painting_command_executor_type = m_page_client->display_list_player_type();
|
||||
switch (painting_command_executor_type) {
|
||||
case DisplayListPlayerType::CPU:
|
||||
case DisplayListPlayerType::GPU: { // GPU painter does not have any path rasterization support so we always fall back to CPU painter
|
||||
case DisplayListPlayerType::CPU: {
|
||||
Painting::DisplayListPlayerCPU executor { *bitmap };
|
||||
display_list.execute(executor);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user