Flutter Engine
 
Loading...
Searching...
No Matches
impeller::interop::Context Class Reference

#include <context.h>

Inheritance diagram for impeller::interop::Context:
impeller::interop::Object< Context, IMPELLER_INTERNAL_HANDLE_NAME(ImpellerContext)> impeller::interop::ObjectBase impeller::interop::ContextGLES impeller::interop::ContextMTL impeller::interop::ContextVK

Public Member Functions

 ~Context () override
 
 Context (const Context &)=delete
 
Contextoperator= (const Context &)=delete
 
bool IsValid () const
 
std::shared_ptr< impeller::ContextGetContext () const
 
AiksContextGetAiksContext ()
 
bool IsBackend (impeller::Context::BackendType type) const
 
bool IsGL () const
 
bool IsMetal () const
 
bool IsVulkan () const
 
- Public Member Functions inherited from impeller::interop::ObjectBase
 ObjectBase ()=default
 
virtual ~ObjectBase ()=default
 
 ObjectBase (const ObjectBase &)=delete
 
 ObjectBase (ObjectBase &&)=delete
 
ObjectBaseoperator= (const ObjectBase &)=delete
 
ObjectBaseoperator= (ObjectBase &&)=delete
 
void Retain ()
 
void Release ()
 
uint64_t GetRefCountForTests () const
 

Protected Member Functions

 Context (std::shared_ptr< impeller::Context > context)
 

Additional Inherited Members

- Public Types inherited from impeller::interop::Object< Context, IMPELLER_INTERNAL_HANDLE_NAME(ImpellerContext)>
using InteropClass = Context
 
using InteropCSibling = IMPELLER_INTERNAL_HANDLE_NAME(ImpellerContext)
 
- Static Public Member Functions inherited from impeller::interop::ObjectBase
static void SafeRetain (void *ptr)
 
static void SafeRelease (void *ptr)
 

Detailed Description

Definition at line 15 of file context.h.

Constructor & Destructor Documentation

◆ ~Context()

impeller::interop::Context::~Context ( )
overridedefault

◆ Context() [1/2]

impeller::interop::Context::Context ( const Context )
delete

◆ Context() [2/2]

impeller::interop::Context::Context ( std::shared_ptr< impeller::Context context)
explicitprotected

Definition at line 11 of file context.cc.

12 : context_(std::move(context), TypographerContextSkia::Make()) {}
static std::shared_ptr< TypographerContext > Make()

Member Function Documentation

◆ GetAiksContext()

AiksContext & impeller::interop::Context::GetAiksContext ( )

Definition at line 24 of file context.cc.

24 {
25 return context_;
26}

◆ GetContext()

◆ IsBackend()

bool impeller::interop::Context::IsBackend ( impeller::Context::BackendType  type) const

Definition at line 28 of file context.cc.

28 {
29 if (!IsValid()) {
30 return false;
31 }
32 return GetContext()->GetBackendType() == type;
33}
GLenum type
std::shared_ptr< impeller::Context > GetContext() const
Definition context.cc:20

References GetContext(), IsValid(), and type.

Referenced by IsGL(), IsMetal(), and IsVulkan().

◆ IsGL()

bool impeller::interop::Context::IsGL ( ) const

Definition at line 35 of file context.cc.

35 {
37}
bool IsBackend(impeller::Context::BackendType type) const
Definition context.cc:28

References IsBackend(), and impeller::Context::kOpenGLES.

◆ IsMetal()

bool impeller::interop::Context::IsMetal ( ) const

◆ IsValid()

bool impeller::interop::Context::IsValid ( ) const

Definition at line 16 of file context.cc.

16 {
17 return context_.IsValid();
18}

References impeller::AiksContext::IsValid().

Referenced by impeller::interop::ContextVK::GetInfo(), IsBackend(), and impeller::interop::Texture::Texture().

◆ IsVulkan()

bool impeller::interop::Context::IsVulkan ( ) const

◆ operator=()

Context & impeller::interop::Context::operator= ( const Context )
delete

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