mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
3627329bed
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
67 lines
1.3 KiB
C++
67 lines
1.3 KiB
C++
/*
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
|
|
namespace Ladybird {
|
|
|
|
enum class EnableCallgrindProfiling {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class IsLayoutTestMode {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class UseLagomNetworking {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class WaitForDebugger {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class LogAllJSExceptions {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class EnableIDLTracing {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class EnableHTTPCache {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class ExposeInternalsObject {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
struct WebContentOptions {
|
|
String command_line;
|
|
String executable_path;
|
|
Optional<ByteString> config_path {};
|
|
EnableCallgrindProfiling enable_callgrind_profiling { EnableCallgrindProfiling::No };
|
|
IsLayoutTestMode is_layout_test_mode { IsLayoutTestMode::No };
|
|
UseLagomNetworking use_lagom_networking { UseLagomNetworking::Yes };
|
|
WaitForDebugger wait_for_debugger { WaitForDebugger::No };
|
|
LogAllJSExceptions log_all_js_exceptions { LogAllJSExceptions::No };
|
|
EnableIDLTracing enable_idl_tracing { EnableIDLTracing::No };
|
|
EnableHTTPCache enable_http_cache { EnableHTTPCache::No };
|
|
ExposeInternalsObject expose_internals_object { ExposeInternalsObject::No };
|
|
};
|
|
|
|
}
|