9 #include "flutter/fml/macros.h"
10 #include "flutter/fml/mapping.h"
29 mutable RWMutex functions_mutex_;
31 bool is_valid_ =
false;
34 const std::vector<std::shared_ptr<fml::Mapping>>& shader_libraries);
37 std::shared_ptr<const ShaderFunction> GetFunction(std::string_view name,
41 void RegisterFunction(std::string name,
43 std::shared_ptr<fml::Mapping> code,
47 void UnregisterFunction(std::string name,
ShaderStage stage)
override;