Represents a handle to an underlying OpenGL object. Unlike OpenGL object handles, these handles can be collected on any thread as long as their destruction is scheduled in a reactor. More...
#include <handle_gles.h>
Classes | |
struct | Equal |
A comparer used to test the equality of two handles. More... | |
struct | Hash |
Get the hash value of this handle. Handles can be used as map keys. More... | |
Public Member Functions | |
constexpr bool | IsDead () const |
Determines if the handle is dead. More... | |
HandleType | GetType () const |
const std::optional< UniqueID > & | GetName () const |
std::size_t | GetHash () const |
Static Public Member Functions | |
static HandleGLES | DeadHandle () |
Creates a dead handle. More... | |
Friends | |
class | ReactorGLES |
Represents a handle to an underlying OpenGL object. Unlike OpenGL object handles, these handles can be collected on any thread as long as their destruction is scheduled in a reactor.
Definition at line 37 of file handle_gles.h.
|
inlinestatic |
Creates a dead handle.
Definition at line 44 of file handle_gles.h.
References impeller::kUnknown.
Referenced by impeller::ReactorGLES::CreateHandle(), and impeller::TextureGLES::Leak().
|
inline |
Definition at line 76 of file handle_gles.h.
Referenced by impeller::HandleGLES::Hash::operator()().
|
inline |
|
inline |
Definition at line 74 of file handle_gles.h.
Referenced by impeller::ReactorGLES::GetGLFence(), impeller::ReactorGLES::GetGLHandle(), std::operator<<(), impeller::ReactorGLES::SetDebugLabel(), and impeller::TextureGLES::WrapTexture().
|
inlineconstexpr |
Determines if the handle is dead.
Definition at line 53 of file handle_gles.h.
Referenced by impeller::ReactorGLES::CollectHandle(), impeller::EncodeCommandsInReactor(), impeller::UniqueHandleGLES::IsValid(), std::operator<<(), impeller::ReactorGLES::RegisterCleanupCallback(), impeller::ReactorGLES::SetDebugLabel(), impeller::testing::TEST(), impeller::TextureGLES::WrapTexture(), impeller::TextureGLES::~TextureGLES(), and impeller::UniqueHandleGLES::~UniqueHandleGLES().
|
friend |
Definition at line 84 of file handle_gles.h.