22 : context_(context) {}
27 if (entrypoint.empty()) {
30 dart_entrypoint_ = entrypoint;
35 ui_thread_policy_ =
policy;
43 dart_entrypoint_arguments_.emplace_back(std::move(arg));
48 gpu_preference_ = gpu_preference;
61 std::vector<const char*> dart_args;
62 dart_args.reserve(dart_entrypoint_arguments_.size());
63 for (
const auto& arg : dart_entrypoint_arguments_) {
64 dart_args.push_back(arg.c_str());
66 if (!dart_args.empty()) {
79 return engine_properties;
135void WindowsConfigBuilder::InitializeCOM()
const {
void SetRootIsolateCreateCallback(const fml::closure &callback)
FlutterDesktopEngineProperties GetEngineProperties() const
EnginePtr InitializeEngine() const
void SetDartEntrypoint(std::string_view entrypoint)
void AddDartEntrypointArgument(std::string_view arg)
EnginePtr RunHeadless() const
void SetUIThreadPolicy(FlutterDesktopUIThreadPolicy policy)
void SetGpuPreference(FlutterDesktopGpuPreference gpu_preference)
WindowsConfigBuilder(WindowsTestContext &context)
ViewControllerPtr Run() const
const std::wstring & GetIcuDataPath() const
const std::wstring & GetAssetsPath() const
fml::closure GetRootIsolateCallback()
FlutterDesktopUIThreadPolicy
FlutterDesktopGpuPreference
#define FML_CHECK(condition)
std::unique_ptr< FlutterDesktopEngine, EngineDeleter > EnginePtr
std::unique_ptr< FlutterDesktopViewController, ViewControllerDeleter > ViewControllerPtr
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network policy
const char * dart_entrypoint
const char * icu_data_path
const char ** dart_entrypoint_argv
FlutterDesktopUIThreadPolicy ui_thread_policy
FlutterDesktopGpuPreference gpu_preference
FlutterDesktopEngineRef FlutterDesktopEngineCreate(const FlutterDesktopEngineProperties *engine_properties)
FlutterDesktopViewControllerRef FlutterDesktopViewControllerCreate(int width, int height, FlutterDesktopEngineRef engine)
bool FlutterDesktopEngineRun(FlutterDesktopEngineRef engine, const char *entry_point)