Flutter Engine
 
Loading...
Searching...
No Matches
flutter::AndroidContextVKImpeller Class Reference

#include <android_context_vk_impeller.h>

Inheritance diagram for flutter::AndroidContextVKImpeller:
flutter::AndroidContext

Public Member Functions

 AndroidContextVKImpeller (const AndroidContext::ContextSettings &settings)
 
 ~AndroidContextVKImpeller ()
 
bool IsValid () const override
 
AndroidRenderingAPI RenderingApi () const override
 
- Public Member Functions inherited from flutter::AndroidContext
 AndroidContext (AndroidRenderingAPI rendering_api)
 
virtual ~AndroidContext ()
 
virtual bool IsDynamicSelection () const
 
void SetMainSkiaContext (const sk_sp< GrDirectContext > &main_context)
 Setter for the Skia context to be used by subsequent AndroidSurfaces.
 
sk_sp< GrDirectContext > GetMainSkiaContext () const
 Accessor for the Skia context associated with AndroidSurfaces and the raster thread.
 
virtual std::shared_ptr< impeller::ContextGetImpellerContext () const
 Accessor for the Impeller context associated with AndroidSurfaces and the raster thread.
 
virtual void SetupImpellerContext ()
 Perform deferred setup for the impeller Context.
 

Additional Inherited Members

- Protected Member Functions inherited from flutter::AndroidContext
void SetImpellerContext (const std::shared_ptr< impeller::Context > &impeller_context)
 

Detailed Description

Definition at line 14 of file android_context_vk_impeller.h.

Constructor & Destructor Documentation

◆ AndroidContextVKImpeller()

flutter::AndroidContextVKImpeller::AndroidContextVKImpeller ( const AndroidContext::ContextSettings settings)
explicit

Definition at line 74 of file android_context_vk_impeller.cc.

77 vulkan_dylib_(fml::NativeLibrary::Create("libvulkan.so")) {
78 auto impeller_context = CreateImpellerContext(vulkan_dylib_, settings);
79 is_valid_ = !!impeller_context;
80 SetImpellerContext(impeller_context);
81}
static std::shared_ptr< impeller::ContextMTL > CreateImpellerContext()
AndroidContext(AndroidRenderingAPI rendering_api)
void SetImpellerContext(const std::shared_ptr< impeller::Context > &impeller_context)
static fml::RefPtr< NativeLibrary > Create(const char *path)

References CreateImpellerContext(), and flutter::AndroidContext::SetImpellerContext().

◆ ~AndroidContextVKImpeller()

flutter::AndroidContextVKImpeller::~AndroidContextVKImpeller ( )
default

Member Function Documentation

◆ IsValid()

bool flutter::AndroidContextVKImpeller::IsValid ( ) const
overridevirtual

Reimplemented from flutter::AndroidContext.

Definition at line 85 of file android_context_vk_impeller.cc.

85 {
86 return is_valid_;
87}

◆ RenderingApi()

AndroidRenderingAPI flutter::AndroidContextVKImpeller::RenderingApi ( ) const
overridevirtual

Reimplemented from flutter::AndroidContext.

Definition at line 89 of file android_context_vk_impeller.cc.

References flutter::kImpellerVulkan.


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