A unique handle to an OpenGL object. The collection of this handle scheduled the destruction of the associated OpenGL object in the reactor. More...
#include <unique_handle_gles.h>
Public Member Functions | |
| UniqueHandleGLES ()=default | |
| UniqueHandleGLES (std::shared_ptr< ReactorGLES > reactor, HandleType type) | |
| UniqueHandleGLES (std::shared_ptr< ReactorGLES > reactor, HandleGLES handle) | |
| ~UniqueHandleGLES () | |
| UniqueHandleGLES (UniqueHandleGLES &&) | |
| UniqueHandleGLES & | operator= (UniqueHandleGLES &&) |
| UniqueHandleGLES (const UniqueHandleGLES &)=delete | |
| UniqueHandleGLES & | operator= (const UniqueHandleGLES &)=delete |
| const HandleGLES & | Get () const |
| bool | IsValid () const |
| void | Reset () |
| Collect the managed handle and replace it with a dead handle. | |
| HandleGLES | Release () |
| Release ownership of the handle. | |
Static Public Member Functions | |
| static UniqueHandleGLES | MakeUntracked (std::shared_ptr< ReactorGLES > reactor, HandleType type) |
A unique handle to an OpenGL object. The collection of this handle scheduled the destruction of the associated OpenGL object in the reactor.
Definition at line 18 of file unique_handle_gles.h.
|
default |
Referenced by MakeUntracked().
| impeller::UniqueHandleGLES::UniqueHandleGLES | ( | std::shared_ptr< ReactorGLES > | reactor, |
| HandleType | type | ||
| ) |
Definition at line 11 of file unique_handle_gles.cc.
References type.
| impeller::UniqueHandleGLES::UniqueHandleGLES | ( | std::shared_ptr< ReactorGLES > | reactor, |
| HandleGLES | handle | ||
| ) |
Definition at line 28 of file unique_handle_gles.cc.
| impeller::UniqueHandleGLES::~UniqueHandleGLES | ( | ) |
Definition at line 32 of file unique_handle_gles.cc.
| impeller::UniqueHandleGLES::UniqueHandleGLES | ( | UniqueHandleGLES && | other | ) |
Definition at line 63 of file unique_handle_gles.cc.
|
delete |
| const HandleGLES & impeller::UniqueHandleGLES::Get | ( | ) | const |
Definition at line 42 of file unique_handle_gles.cc.
Referenced by impeller::TextureGLES::Bind(), impeller::TextureGLES::GetCachedFBO(), impeller::TextureGLES::GetGLHandle(), impeller::TextureGLES::GetSyncFence(), and impeller::testing::TEST().
| bool impeller::UniqueHandleGLES::IsValid | ( | ) | const |
Definition at line 46 of file unique_handle_gles.cc.
References impeller::HandleGLES::IsDead().
Referenced by impeller::TextureGLES::Bind(), impeller::TextureGLES::GetSyncFence(), and impeller::TextureGLES::SetFence().
|
static |
Definition at line 20 of file unique_handle_gles.cc.
References FML_DCHECK, reactor, type, and UniqueHandleGLES().
Referenced by impeller::testing::TEST().
|
delete |
| UniqueHandleGLES & impeller::UniqueHandleGLES::operator= | ( | UniqueHandleGLES && | other | ) |
Definition at line 68 of file unique_handle_gles.cc.
References Reset().
| HandleGLES impeller::UniqueHandleGLES::Release | ( | ) |
Release ownership of the handle.
Definition at line 56 of file unique_handle_gles.cc.
References impeller::HandleGLES::DeadHandle().
Referenced by impeller::TextureGLES::Leak().
| void impeller::UniqueHandleGLES::Reset | ( | ) |
Collect the managed handle and replace it with a dead handle.
Definition at line 50 of file unique_handle_gles.cc.
References impeller::HandleGLES::DeadHandle().
Referenced by impeller::TextureGLES::Bind(), and operator=().