Flutter Impeller
impeller::HandleGLES Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ DeadHandle()

static HandleGLES impeller::HandleGLES::DeadHandle ( )
inlinestatic

Creates a dead handle.

Returns
The handle.

Definition at line 44 of file handle_gles.h.

44  {
45  return HandleGLES{HandleType::kUnknown, std::nullopt};
46  }

References impeller::kUnknown.

Referenced by impeller::ReactorGLES::CreateHandle(), and impeller::TextureGLES::Leak().

◆ GetHash()

std::size_t impeller::HandleGLES::GetHash ( ) const
inline

Definition at line 76 of file handle_gles.h.

76 { return hash_; }

Referenced by impeller::HandleGLES::Hash::operator()().

◆ GetName()

const std::optional<UniqueID>& impeller::HandleGLES::GetName ( ) const
inline

Definition at line 75 of file handle_gles.h.

75 { return name_; }

Referenced by std::operator<<().

◆ GetType()

HandleType impeller::HandleGLES::GetType ( ) const
inline

◆ IsDead()

Friends And Related Function Documentation

◆ ReactorGLES

friend class ReactorGLES
friend

Definition at line 84 of file handle_gles.h.


The documentation for this class was generated from the following file: