#include <context.h>
Public Member Functions | |
~Context () override | |
Context (const Context &)=delete | |
Context & | operator= (const Context &)=delete |
bool | IsValid () const |
std::shared_ptr< impeller::Context > | GetContext () const |
AiksContext & | GetAiksContext () |
bool | IsBackend (impeller::Context::BackendType type) const |
bool | IsGL () const |
bool | IsMetal () const |
bool | IsVulkan () 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 |
Protected Member Functions | |
Context (std::shared_ptr< impeller::Context > context) | |
Additional Inherited Members | |
![]() | |
using | InteropClass = Context |
using | InteropCSibling = IMPELLER_INTERNAL_HANDLE_NAME(ImpellerContext) |
![]() | |
static void | SafeRetain (void *ptr) |
static void | SafeRelease (void *ptr) |
|
overridedefault |
|
delete |
|
explicitprotected |
Definition at line 11 of file context.cc.
AiksContext & impeller::interop::Context::GetAiksContext | ( | ) |
Definition at line 24 of file context.cc.
std::shared_ptr< impeller::Context > impeller::interop::Context::GetContext | ( | ) | const |
Definition at line 20 of file context.cc.
References impeller::AiksContext::GetContext().
Referenced by impeller::interop::ContextVK::GetInfo(), IsBackend(), impeller::interop::ColorSource::MakeFragmentProgram(), impeller::interop::ImageFilter::MakeFragmentProgram(), impeller::interop::SwapchainVK::SwapchainVK(), and impeller::interop::Texture::Texture().
bool impeller::interop::Context::IsBackend | ( | impeller::Context::BackendType | type | ) | const |
Definition at line 28 of file context.cc.
References GetContext(), IsValid(), and type.
Referenced by IsGL(), IsMetal(), and IsVulkan().
bool impeller::interop::Context::IsGL | ( | ) | const |
Definition at line 35 of file context.cc.
References IsBackend(), and impeller::Context::kOpenGLES.
bool impeller::interop::Context::IsMetal | ( | ) | const |
bool impeller::interop::Context::IsValid | ( | ) | const |
Definition at line 16 of file context.cc.
References impeller::AiksContext::IsValid().
Referenced by impeller::interop::ContextVK::GetInfo(), IsBackend(), and impeller::interop::Texture::Texture().
bool impeller::interop::Context::IsVulkan | ( | ) | const |
Definition at line 43 of file context.cc.
References IsBackend(), and impeller::Context::kVulkan.
Referenced by impeller::interop::SwapchainVK::SwapchainVK().