#include <fragment_program.h>
Definition at line 15 of file fragment_program.h.
◆ FragmentProgram() [1/2]
| impeller::interop::FragmentProgram::FragmentProgram |
( |
const std::shared_ptr< fml::Mapping > & |
mapping | ) |
|
|
explicit |
Definition at line 11 of file fragment_program.cc.
11 {
12 if (data ==
nullptr ||
data->GetSize() == 0) {
14 return;
15 }
16
18 if (!stages.ok()) {
19 VALIDATION_LOG <<
"Failed to decode runtime stages: " << stages.status();
20 return;
21 }
22
23 for (
const auto& stage : stages.
value()) {
24 if (auto data = stage.second) {
25 stages_[stage.first] = std::move(data);
26 }
27 }
28
29 if (stages_.empty()) {
30 VALIDATION_LOG <<
"No valid runtime stages present in fragment program.";
31 return;
32 }
33
34 is_valid_ = true;
35}
static absl::StatusOr< Map > DecodeRuntimeStages(const std::shared_ptr< fml::Mapping > &payload)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
References impeller::RuntimeStage::DecodeRuntimeStages(), and VALIDATION_LOG.
◆ ~FragmentProgram()
| impeller::interop::FragmentProgram::~FragmentProgram |
( |
| ) |
|
|
default |
◆ FragmentProgram() [2/2]
| impeller::interop::FragmentProgram::FragmentProgram |
( |
const FragmentProgram & |
| ) |
|
|
delete |
◆ FindRuntimeStage()
◆ IsValid()
| bool impeller::interop::FragmentProgram::IsValid |
( |
| ) |
const |
◆ operator=()
The documentation for this class was generated from the following files: