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_
71 const std::wstring& icu_data_path,
72 const std::wstring& aot_library_path) {
73 assets_path_ = assets_path;
74 icu_data_path_ = icu_data_path;
75 aot_library_path_ = aot_library_path;
87 assets_path_ = path + L
"\\flutter_assets";
88 icu_data_path_ = path + L
"\\icudtl.dat";
89 aot_library_path_ = path + L
"\\app.so";
99 if (entrypoint.empty()) {
102 dart_entrypoint_ = entrypoint;
111 dart_entrypoint_arguments_ = std::move(arguments);
117 return dart_entrypoint_arguments_;
131 ui_thread_policy_ = policy;
175 const std::wstring& assets_path()
const {
return assets_path_; }
176 const std::wstring& icu_data_path()
const {
return icu_data_path_; }
177 const std::wstring& aot_library_path()
const {
return aot_library_path_; }
180 std::wstring assets_path_;
182 std::wstring icu_data_path_;
185 std::wstring aot_library_path_;
187 std::string dart_entrypoint_;
189 std::vector<std::string> dart_entrypoint_arguments_;
199 bool enable_flutter_gpu_ =
false;
void set_dart_entrypoint(const std::string &entrypoint)
void set_enable_flutter_gpu(bool enable_flutter_gpu)
bool enable_flutter_gpu() const
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)
DartProject(const std::wstring &path)
AccessibilityMode accessibility_mode() const
void set_dart_entrypoint_arguments(std::vector< std::string > arguments)
UIThreadPolicy ui_thread_policy() const
const std::string & dart_entrypoint() const
void set_impeller_switch(ImpellerSwitch impeller_switch)
const std::vector< std::string > & dart_entrypoint_arguments() const
void set_accessibility_mode(AccessibilityMode accessibility_mode)
GpuPreference gpu_preference() const
ImpellerSwitch impeller_switch() const
@ HighPerformancePreference