5#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_INCLUDE_FLUTTER_DART_PROJECT_H_
6#define FLUTTER_SHELL_PLATFORM_WINDOWS_CLIENT_WRAPPER_INCLUDE_FLUTTER_DART_PROJECT_H_
50 const std::wstring& icu_data_path,
51 const std::wstring& aot_library_path) {
52 assets_path_ = assets_path;
53 icu_data_path_ = icu_data_path;
54 aot_library_path_ = aot_library_path;
66 assets_path_ =
path + L
"\\flutter_assets";
67 icu_data_path_ =
path + L
"\\icudtl.dat";
68 aot_library_path_ =
path + L
"\\app.so";
78 if (entrypoint.empty()) {
81 dart_entrypoint_ = entrypoint;
90 dart_entrypoint_arguments_ = std::move(arguments);
96 return dart_entrypoint_arguments_;
110 ui_thread_policy_ =
policy;
126 const std::wstring& assets_path()
const {
return assets_path_; }
127 const std::wstring& icu_data_path()
const {
return icu_data_path_; }
128 const std::wstring& aot_library_path()
const {
return aot_library_path_; }
131 std::wstring assets_path_;
133 std::wstring icu_data_path_;
136 std::wstring aot_library_path_;
138 std::string dart_entrypoint_;
140 std::vector<std::string> dart_entrypoint_arguments_;
void set_dart_entrypoint(const std::string &entrypoint)
void set_ui_thread_policy(UIThreadPolicy policy)
void set_gpu_preference(GpuPreference gpu_preference)
DartProject(const std::wstring &assets_path, const std::wstring &icu_data_path, const std::wstring &aot_library_path)
const std::vector< std::string > & dart_entrypoint_arguments() const
const std::string & dart_entrypoint() const
DartProject(const std::wstring &path)
void set_dart_entrypoint_arguments(std::vector< std::string > arguments)
UIThreadPolicy ui_thread_policy() const
GpuPreference gpu_preference() const
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
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
@ HighPerformancePreference