An Impeller Android context that dynamically creates either an [AndroidContextGLImpeller] or an [AndroidContextVKImpeller]. More...
#include <android_context_dynamic_impeller.h>
Public Member Functions | |
| AndroidContextDynamicImpeller (const AndroidContext::ContextSettings &settings) | |
| ~AndroidContextDynamicImpeller () | |
| bool | IsValid () const override |
| bool | IsDynamicSelection () const override |
| AndroidRenderingAPI | RenderingApi () const override |
| std::shared_ptr< AndroidContextGLImpeller > | GetGLContext () const |
| Retrieve the GL Context if it was created, or nullptr. | |
| std::shared_ptr< AndroidContextVKImpeller > | GetVKContext () const |
| Retrieve the VK context if it was created, or nullptr. | |
| void | SetupImpellerContext () override |
| Perform deferred setup for the impeller Context. | |
| std::shared_ptr< impeller::Context > | GetImpellerContext () const override |
| Accessor for the Impeller context associated with AndroidSurfaces and the raster thread. | |
Public Member Functions inherited from flutter::AndroidContext | |
| AndroidContext (AndroidRenderingAPI rendering_api) | |
| virtual | ~AndroidContext () |
| 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. | |
Additional Inherited Members | |
Protected Member Functions inherited from flutter::AndroidContext | |
| void | SetImpellerContext (const std::shared_ptr< impeller::Context > &impeller_context) |
An Impeller Android context that dynamically creates either an [AndroidContextGLImpeller] or an [AndroidContextVKImpeller].
The construction of these objects is deferred until [GetImpellerContext] is invoked. Up to this point, the reported backend will be kImpellerAutoselect.
Definition at line 23 of file android_context_dynamic_impeller.h.
|
explicit |
Definition at line 141 of file android_context_dynamic_impeller.cc.
|
default |
| std::shared_ptr< AndroidContextGLImpeller > flutter::AndroidContextDynamicImpeller::GetGLContext | ( | ) | const |
Retrieve the GL Context if it was created, or nullptr.
Definition at line 170 of file android_context_dynamic_impeller.cc.
|
overridevirtual |
Accessor for the Impeller context associated with AndroidSurfaces and the raster thread.
Reimplemented from flutter::AndroidContext.
Definition at line 159 of file android_context_dynamic_impeller.cc.
| std::shared_ptr< AndroidContextVKImpeller > flutter::AndroidContextDynamicImpeller::GetVKContext | ( | ) | const |
Retrieve the VK context if it was created, or nullptr.
Definition at line 175 of file android_context_dynamic_impeller.cc.
|
inlineoverridevirtual |
Reimplemented from flutter::AndroidContext.
Definition at line 34 of file android_context_dynamic_impeller.h.
|
inlineoverridevirtual |
Reimplemented from flutter::AndroidContext.
Definition at line 31 of file android_context_dynamic_impeller.h.
|
overridevirtual |
Reimplemented from flutter::AndroidContext.
Definition at line 148 of file android_context_dynamic_impeller.cc.
References flutter::kImpellerAutoselect, flutter::kImpellerOpenGLES, and flutter::kImpellerVulkan.
|
overridevirtual |
Perform deferred setup for the impeller Context.
Reimplemented from flutter::AndroidContext.
Definition at line 179 of file android_context_dynamic_impeller.cc.
References flutter::AndroidContext::ContextSettings::enable_gpu_tracing.