#include <component_v2.h>
Definition at line 56 of file component_v2.h.
◆ TerminationCallback
◆ ~ComponentV2()
flutter_runner::ComponentV2::~ComponentV2 |
( |
| ) |
|
|
default |
◆ Create()
ActiveComponentV2 flutter_runner::ComponentV2::Create |
( |
TerminationCallback |
termination_callback, |
|
|
fuchsia::component::runner::ComponentStartInfo |
start_info, |
|
|
std::shared_ptr< sys::ServiceDirectory > |
runner_incoming_services, |
|
|
fidl::InterfaceRequest< fuchsia::component::runner::ComponentController > |
controller |
|
) |
| |
|
static |
Definition at line 128 of file component_v2.cc.
133 {
134 auto thread = std::make_unique<fml::Thread>();
135 std::unique_ptr<ComponentV2> component;
136
138 thread->GetTaskRunner()->PostTask([&]() mutable {
139 component.reset(
140 new ComponentV2(std::move(termination_callback), std::move(start_info),
141 runner_incoming_services, std::move(controller)));
143 });
144
146 return {.platform_thread = std::move(thread),
147 .component = std::move(component)};
148}
◆ GetDebugLabel()
const std::string & flutter_runner::ComponentV2::GetDebugLabel |
( |
| ) |
const |
◆ ParseProgramMetadata()
ProgramMetadata flutter_runner::ComponentV2::ParseProgramMetadata |
( |
const fuchsia::data::Dictionary & |
program_metadata | ) |
|
|
static |
Parses the program metadata that was provided for the component.
|old_gen_heap_size| will be set to -1 if no value was specified.
Definition at line 106 of file component_v2.cc.
107 {
109
110 for (const auto& entry : program_metadata.entries()) {
111 if (entry.key.compare(kDataKey) == 0 && entry.value != nullptr) {
112 result.data_path =
"pkg/" + entry.value->str();
113 } else if (entry.key.compare(kAssetsKey) == 0 && entry.value != nullptr) {
114 result.assets_path =
"pkg/" + entry.value->str();
115 }
else if (entry.key.compare(
kArgsKey) == 0 && entry.value !=
nullptr) {
117 }
118 }
119
120
121 if (
result.assets_path.empty()) {
123 }
124
126}
static constexpr char kArgsKey[]
◆ WriteProfileToTrace()
void flutter_runner::ComponentV2::WriteProfileToTrace |
( |
| ) |
const |
The documentation for this class was generated from the following files: