Flutter Engine
The Flutter Engine
|
#include <embedder_surface_metal_impeller.h>
Classes | |
struct | MetalDispatchTable |
Public Member Functions | |
EmbedderSurfaceMetalImpeller (GPUMTLDeviceHandle device, GPUMTLCommandQueueHandle command_queue, MetalDispatchTable dispatch_table, std::shared_ptr< EmbedderExternalViewEmbedder > external_view_embedder) | |
~EmbedderSurfaceMetalImpeller () override | |
Public Member Functions inherited from flutter::EmbedderSurface | |
EmbedderSurface () | |
virtual | ~EmbedderSurface () |
virtual sk_sp< GrDirectContext > | CreateResourceContext () const |
Public Member Functions inherited from flutter::GPUSurfaceMetalDelegate | |
GPUSurfaceMetalDelegate (MTLRenderTargetType render_target) | |
Construct a new GPUSurfaceMetalDelegate object with the specified render_target type. | |
virtual | ~GPUSurfaceMetalDelegate () |
virtual bool | AllowsDrawingWhenGpuDisabled () const |
Whether to allow drawing to the surface when the GPU is disabled. | |
MTLRenderTargetType | GetRenderTargetType () |
Private Member Functions | |
bool | IsValid () const override |
std::unique_ptr< Surface > | CreateGPUSurface () override |
GPUCAMetalLayerHandle | GetCAMetalLayer (const SkISize &frame_size) const override |
Returns the handle to the CAMetalLayer to render to. This is only called when the specified render target type is kCAMetalLayer . | |
bool | PresentDrawable (GrMTLHandle drawable) const override |
Presents the drawable to the "screen". The drawable is obtained from the CAMetalLayer that given by GetCAMetalLayer call. This is only called when the specified render target type in kCAMetalLayer . | |
GPUMTLTextureInfo | GetMTLTexture (const SkISize &frame_size) const override |
Returns the handle to the MTLTexture to render to. This is only called when the specified render target type is kMTLTexture . | |
bool | PresentTexture (GPUMTLTextureInfo texture) const override |
Presents the texture with texture_id to the "screen". texture_id corresponds to a texture that has been obtained by an earlier call to GetMTLTexture . This is only called when the specified render target type is kMTLTexture . | |
std::shared_ptr< impeller::Context > | CreateImpellerContext () const override |
Definition at line 22 of file embedder_surface_metal_impeller.h.
flutter::EmbedderSurfaceMetalImpeller::EmbedderSurfaceMetalImpeller | ( | GPUMTLDeviceHandle | device, |
GPUMTLCommandQueueHandle | command_queue, | ||
MetalDispatchTable | dispatch_table, | ||
std::shared_ptr< EmbedderExternalViewEmbedder > | external_view_embedder | ||
) |
Definition at line 28 of file embedder_surface_metal_impeller.mm.
|
overridedefault |
|
overrideprivatevirtual |
Implements flutter::EmbedderSurface.
Definition at line 66 of file embedder_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Reimplemented from flutter::EmbedderSurface.
Definition at line 82 of file embedder_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Returns the handle to the CAMetalLayer to render to. This is only called when the specified render target type is kCAMetalLayer
.
Implements flutter::GPUSurfaceMetalDelegate.
Definition at line 86 of file embedder_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Returns the handle to the MTLTexture to render to. This is only called when the specified render target type is kMTLTexture
.
Implements flutter::GPUSurfaceMetalDelegate.
Definition at line 97 of file embedder_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Implements flutter::EmbedderSurface.
Definition at line 62 of file embedder_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Presents the drawable to the "screen". The drawable is obtained from the CAMetalLayer that given by GetCAMetalLayer
call. This is only called when the specified render target type in kCAMetalLayer
.
Implements flutter::GPUSurfaceMetalDelegate.
Definition at line 92 of file embedder_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Presents the texture with texture_id
to the "screen". texture_id
corresponds to a texture that has been obtained by an earlier call to GetMTLTexture
. This is only called when the specified render target type is kMTLTexture
.
Implements flutter::GPUSurfaceMetalDelegate.
Definition at line 101 of file embedder_surface_metal_impeller.mm.