Everywhere: Remove AffineCommandExecutorCPU

No need to have it after introduction of Skia painter that supports
transforms.
This commit is contained in:
Aliaksandr Kalenik 2024-06-19 16:44:42 +03:00 committed by Alexander Kalenik
commit 0b48c1ea3f
Notes: sideshowbarker 2024-07-17 06:35:23 +09:00
17 changed files with 12 additions and 443 deletions

View file

@ -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;
}