#include <texture.h>
Public Member Functions | |
Texture (const Context &context, const TextureDescriptor &descriptor) | |
Texture (impeller::Context::BackendType backend, std::shared_ptr< impeller::Texture > texture) | |
~Texture () override | |
Texture (const Texture &)=delete | |
Texture & | operator= (const Texture &)=delete |
bool | IsValid () const |
bool | SetContents (const uint8_t *contents, uint64_t length) |
bool | SetContents (std::shared_ptr< const fml::Mapping > contents) |
sk_sp< DlImageImpeller > | MakeImage () const |
impeller::Context::BackendType | GetBackendType () const |
const std::shared_ptr< impeller::Texture > & | GetTexture () const |
![]() | |
ObjectBase ()=default | |
virtual | ~ObjectBase ()=default |
ObjectBase (const ObjectBase &)=delete | |
ObjectBase (ObjectBase &&)=delete | |
ObjectBase & | operator= (const ObjectBase &)=delete |
ObjectBase & | operator= (ObjectBase &&)=delete |
void | Retain () |
void | Release () |
uint64_t | GetRefCountForTests () const |
Additional Inherited Members | |
![]() | |
using | InteropClass = Texture |
using | InteropCSibling = IMPELLER_INTERNAL_HANDLE_NAME(ImpellerTexture) |
![]() | |
static void | SafeRetain (void *ptr) |
static void | SafeRelease (void *ptr) |
|
explicit |
Definition at line 9 of file texture.cc.
References impeller::interop::Context::GetContext(), and impeller::interop::Context::IsValid().
|
explicit |
Definition at line 23 of file texture.cc.
|
overridedefault |
|
delete |
impeller::Context::BackendType impeller::interop::Texture::GetBackendType | ( | ) | const |
Definition at line 51 of file texture.cc.
const std::shared_ptr< impeller::Texture > & impeller::interop::Texture::GetTexture | ( | ) | const |
Definition at line 55 of file texture.cc.
bool impeller::interop::Texture::IsValid | ( | ) | const |
Definition at line 29 of file texture.cc.
Referenced by SetContents().
sk_sp< DlImageImpeller > impeller::interop::Texture::MakeImage | ( | ) | const |
Definition at line 47 of file texture.cc.
References impeller::DlImageImpeller::Make().
Referenced by impeller::interop::DisplayListBuilder::DrawTexture(), impeller::interop::DisplayListBuilder::DrawTextureRect(), and impeller::interop::ColorSource::MakeImage().
bool impeller::interop::Texture::SetContents | ( | const uint8_t * | contents, |
uint64_t | length | ||
) |
bool impeller::interop::Texture::SetContents | ( | std::shared_ptr< const fml::Mapping > | contents | ) |