#include <flutter_project_bundle.h>
Definition at line 45 of file flutter_project_bundle.h.
◆ FlutterProjectBundle()
◆ ~FlutterProjectBundle()
| flutter::FlutterProjectBundle::~FlutterProjectBundle |
( |
| ) |
|
◆ accessibility_mode()
◆ assets_path()
| const std::filesystem::path& flutter::FlutterProjectBundle::assets_path |
( |
| ) |
|
|
inline |
◆ dart_entrypoint()
| const std::string& flutter::FlutterProjectBundle::dart_entrypoint |
( |
| ) |
const |
|
inline |
◆ dart_entrypoint_arguments()
| const std::vector<std::string>& flutter::FlutterProjectBundle::dart_entrypoint_arguments |
( |
| ) |
const |
|
inline |
◆ enable_flutter_gpu()
| bool flutter::FlutterProjectBundle::enable_flutter_gpu |
( |
| ) |
const |
|
inline |
◆ GetSwitches()
| const std::vector< std::string > flutter::FlutterProjectBundle::GetSwitches |
( |
| ) |
|
Definition at line 105 of file flutter_project_bundle.cc.
106 if (engine_switches_.size() == 0) {
109 std::vector<std::string> switches;
110 switches.insert(switches.end(), engine_switches_.begin(),
111 engine_switches_.end());
114 switches.insert(switches.end(), env_switches.begin(), env_switches.end());
std::vector< std::string > GetSwitchesFromEnvironment()
References flutter::GetSwitchesFromEnvironment().
Referenced by flutter::testing::TEST().
◆ gpu_preference()
◆ HasValidPaths()
| bool flutter::FlutterProjectBundle::HasValidPaths |
( |
| ) |
|
◆ icu_path()
| const std::filesystem::path& flutter::FlutterProjectBundle::icu_path |
( |
| ) |
|
|
inline |
◆ impeller_switch()
◆ LoadAotData()
| UniqueAotDataPtr flutter::FlutterProjectBundle::LoadAotData |
( |
const FlutterEngineProcTable & |
engine_procs | ) |
|
Definition at line 73 of file flutter_project_bundle.cc.
75 if (aot_library_path_.empty()) {
77 <<
"Attempted to load AOT data, but no aot_library_path was provided.";
80 if (!std::filesystem::exists(aot_library_path_)) {
81 FML_LOG(ERROR) <<
"Can't load AOT data from " << aot_library_path_
85 std::string path_string = fml::PathToUtf8(aot_library_path_);
86 FlutterEngineAOTDataSource source = {};
87 source.type = kFlutterEngineAOTDataSourceTypeElfPath;
88 source.elf_path = path_string.c_str();
89 FlutterEngineAOTData data =
nullptr;
90 auto result = engine_procs.CreateAOTData(&source, &data);
91 if (result != kSuccess) {
92 FML_LOG(ERROR) <<
"Failed to load AOT data from: " << path_string;
std::unique_ptr< _FlutterEngineAOTData, FlutterEngineCollectAOTDataFnPtr > UniqueAotDataPtr
◆ SetSwitches()
| void flutter::FlutterProjectBundle::SetSwitches |
( |
const std::vector< std::string > & |
switches | ) |
|
◆ ui_thread_policy()
The documentation for this class was generated from the following files: