mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Everywhere: Use Skia painter by default
Skia painter is visibly faster than LibGfx painter and has more complete CSS transforms support. With this change: - On Linux, it will try to use Vulkan-backend with fallback to CPU-backend - On macOS it will try to use Metal-backend with fallback to CPU-backend - headless-browser always runs with CPU-backend in layout mode
This commit is contained in:
parent
9851176c25
commit
3627329bed
Notes:
github-actions[bot]
2024-07-21 11:27:10 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 3627329bed
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/736
Reviewed-by: https://github.com/jamierocks
44 changed files with 7 additions and 28 deletions
|
@ -27,7 +27,7 @@
|
|||
|
||||
namespace WebContent {
|
||||
|
||||
static PageClient::UseSkiaPainter s_use_skia_painter = PageClient::UseSkiaPainter::No;
|
||||
static PageClient::UseSkiaPainter s_use_skia_painter = PageClient::UseSkiaPainter::GPUBackendIfAvailable;
|
||||
|
||||
JS_DEFINE_ALLOCATOR(PageClient);
|
||||
|
||||
|
@ -733,8 +733,6 @@ void PageClient::did_get_js_console_messages(i32 start_index, Vector<ByteString>
|
|||
Web::DisplayListPlayerType PageClient::display_list_player_type() const
|
||||
{
|
||||
switch (s_use_skia_painter) {
|
||||
case UseSkiaPainter::No:
|
||||
return Web::DisplayListPlayerType::CPU;
|
||||
case UseSkiaPainter::GPUBackendIfAvailable:
|
||||
return Web::DisplayListPlayerType::SkiaGPUIfAvailable;
|
||||
case UseSkiaPainter::CPUBackend:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue