mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
07e9a8f79b
It is currently a bit messy to pass these options along from main() to where WebContent is actually launched. If a new flag were to be added, there are a couple dozen files that need to be updated to pass that flag along. With this change, the flag can just be added to the struct, set in main(), and handled in launch_web_content_process().
38 lines
692 B
C++
38 lines
692 B
C++
/*
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Ladybird {
|
|
|
|
enum class EnableCallgrindProfiling {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class EnableGPUPainting {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class IsLayoutTestMode {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
enum class UseLagomNetworking {
|
|
No,
|
|
Yes
|
|
};
|
|
|
|
struct WebContentOptions {
|
|
EnableCallgrindProfiling enable_callgrind_profiling { EnableCallgrindProfiling::No };
|
|
EnableGPUPainting enable_gpu_painting { EnableGPUPainting::No };
|
|
IsLayoutTestMode is_layout_test_mode { IsLayoutTestMode::No };
|
|
UseLagomNetworking use_lagom_networking { UseLagomNetworking::No };
|
|
};
|
|
|
|
}
|