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