mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Everywhere: Remove AffineCommandExecutorCPU
No need to have it after introduction of Skia painter that supports transforms.
This commit is contained in:
parent
de6d99e940
commit
0b48c1ea3f
Notes:
sideshowbarker
2024-07-17 06:35:23 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 0b48c1ea3f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/212
Reviewed-by: https://github.com/awesomekling ✅
17 changed files with 12 additions and 443 deletions
|
@ -32,7 +32,6 @@
|
|||
namespace WebContent {
|
||||
|
||||
static bool s_use_gpu_painter = false;
|
||||
static bool s_use_experimental_cpu_transform_support = false;
|
||||
static bool s_use_skia_painter = false;
|
||||
|
||||
JS_DEFINE_ALLOCATOR(PageClient);
|
||||
|
@ -47,11 +46,6 @@ void PageClient::set_use_skia_painter()
|
|||
s_use_skia_painter = true;
|
||||
}
|
||||
|
||||
void PageClient::set_use_experimental_cpu_transform_support()
|
||||
{
|
||||
s_use_experimental_cpu_transform_support = true;
|
||||
}
|
||||
|
||||
JS::NonnullGCPtr<PageClient> PageClient::create(JS::VM& vm, PageHost& page_host, u64 id)
|
||||
{
|
||||
return vm.heap().allocate_without_realm<PageClient>(page_host, id);
|
||||
|
@ -734,8 +728,6 @@ Web::PaintingCommandExecutorType PageClient::painting_command_executor_type() co
|
|||
return Web::PaintingCommandExecutorType::GPU;
|
||||
if (s_use_skia_painter)
|
||||
return Web::PaintingCommandExecutorType::Skia;
|
||||
if (s_use_experimental_cpu_transform_support)
|
||||
return Web::PaintingCommandExecutorType::CPUWithExperimentalTransformSupport;
|
||||
return Web::PaintingCommandExecutorType::CPU;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue