Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
flutter::AndroidContextVulkanImpeller Class Reference

#include <android_context_vulkan_impeller.h>

Inheritance diagram for flutter::AndroidContextVulkanImpeller:
flutter::AndroidContext

Public Member Functions

 AndroidContextVulkanImpeller (bool enable_validation, bool enable_gpu_tracing, bool quiet=false)
 
 ~AndroidContextVulkanImpeller ()
 
bool IsValid () const override
 
- Public Member Functions inherited from flutter::AndroidContext
 AndroidContext (AndroidRenderingAPI rendering_api)
 
virtual ~AndroidContext ()
 
AndroidRenderingAPI RenderingApi () const
 
void SetMainSkiaContext (const sk_sp< GrDirectContext > &main_context)
 Setter for the Skia context to be used by subsequent AndroidSurfaces.
 
sk_sp< GrDirectContextGetMainSkiaContext () const
 Accessor for the Skia context associated with AndroidSurfaces and the raster thread.
 
std::shared_ptr< impeller::ContextGetImpellerContext () const
 Accessor for the Impeller context associated with AndroidSurfaces and the raster thread.
 

Additional Inherited Members

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

Detailed Description

Definition at line 15 of file android_context_vulkan_impeller.h.

Constructor & Destructor Documentation

◆ AndroidContextVulkanImpeller()

flutter::AndroidContextVulkanImpeller::AndroidContextVulkanImpeller ( bool  enable_validation,
bool  enable_gpu_tracing,
bool  quiet = false 
)

Definition at line 74 of file android_context_vulkan_impeller.cc.

79 vulkan_dylib_(fml::NativeLibrary::Create("libvulkan.so")) {
80 auto impeller_context = CreateImpellerContext(
81 vulkan_dylib_, enable_validation, enable_gpu_tracing, quiet);
82 SetImpellerContext(impeller_context);
83 is_valid_ = !!impeller_context;
84}
AndroidContext(AndroidRenderingAPI rendering_api)
void SetImpellerContext(const std::shared_ptr< impeller::Context > &context)
static fml::RefPtr< NativeLibrary > Create(const char *path)
static std::shared_ptr< impeller::Context > CreateImpellerContext(const std::shared_ptr< impeller::ReactorGLES::Worker > &worker, bool enable_gpu_tracing)

◆ ~AndroidContextVulkanImpeller()

flutter::AndroidContextVulkanImpeller::~AndroidContextVulkanImpeller ( )
default

Member Function Documentation

◆ IsValid()

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

Reimplemented from flutter::AndroidContext.

Definition at line 88 of file android_context_vulkan_impeller.cc.

88 {
89 return is_valid_;
90}

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