5 #ifndef FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_H_
6 #define FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_H_
12 #include "flutter/fml/mapping.h"
15 #include "runtime_stage_types_flatbuffers.h"
23 using Map = std::map<RuntimeStageBackend, std::shared_ptr<RuntimeStage>>;
27 const std::shared_ptr<fml::Mapping>& payload);
36 const std::vector<RuntimeUniformDescription>&
GetUniforms()
const;
49 std::shared_ptr<fml::Mapping> payload_;
51 std::string entrypoint_;
52 std::shared_ptr<fml::Mapping> code_mapping_;
53 std::vector<RuntimeUniformDescription> uniforms_;
54 bool is_valid_ =
false;
55 bool is_dirty_ =
true;
59 static std::unique_ptr<RuntimeStage> RuntimeStageIfPresent(
60 const fb::RuntimeStage* runtime_stage,
61 const std::shared_ptr<fml::Mapping>& payload);
68 #endif // FLUTTER_IMPELLER_RUNTIME_STAGE_RUNTIME_STAGE_H_