5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_HANDLE_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_HANDLE_GLES_H_
13#include "flutter/fml/hash_combine.h"
33 std::optional<UniqueID>
name;
39 constexpr bool IsDead()
const {
return !
name.has_value(); }
44 std::underlying_type_t<
decltype(handle.
type)>(handle.
type),
64 return HandleGLES{
type, UniqueID{}};
78 if (handle.
name.has_value()) {
static sk_sp< Effect > Create()
The reactor attempts to make thread-safe usage of OpenGL ES easier to reason about.
constexpr std::size_t HashCombine()
std::string HandleTypeToString(HandleType type)
std::ostream & operator<<(std::ostream &out, const impeller::Color &c)
bool operator()(const HandleGLES &lhs, const HandleGLES &rhs) const
std::size_t operator()(const HandleGLES &handle) const
constexpr bool IsDead() const
std::optional< UniqueID > name
static HandleGLES DeadHandle()