5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_LIBRARY_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_SHADER_LIBRARY_GLES_H_
10#include "flutter/fml/macros.h"
11#include "flutter/fml/mapping.h"
30 mutable RWMutex functions_mutex_;
32 bool is_valid_ =
false;
35 const std::vector<std::shared_ptr<fml::Mapping>>& shader_libraries);
38 std::shared_ptr<const ShaderFunction>
GetFunction(std::string_view
name,
44 std::shared_ptr<fml::Mapping> code,
void RegisterFunction(std::string name, ShaderStage stage, std::shared_ptr< fml::Mapping > code, RegistrationCallback callback) override
~ShaderLibraryGLES() override
bool IsValid() const override
std::shared_ptr< const ShaderFunction > GetFunction(std::string_view name, ShaderStage stage) override
void UnregisterFunction(std::string name, ShaderStage stage) override
std::function< void(bool)> RegistrationCallback
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
std::unordered_map< ShaderKey, std::shared_ptr< const ShaderFunction >, ShaderKey::Hash, ShaderKey::Equal > ShaderFunctionMap
#define IPLR_GUARDED_BY(x)