Flutter Engine
The Flutter Engine
|
#include <embedder_surface_metal.h>
Classes | |
struct | MetalDispatchTable |
Public Member Functions | |
EmbedderSurfaceMetal (GPUMTLDeviceHandle device, GPUMTLCommandQueueHandle command_queue, MetalDispatchTable dispatch_table, std::shared_ptr< EmbedderExternalViewEmbedder > external_view_embedder) | |
~EmbedderSurfaceMetal () override | |
Public Member Functions inherited from flutter::EmbedderSurface | |
EmbedderSurface () | |
virtual | ~EmbedderSurface () |
virtual std::shared_ptr< impeller::Context > | CreateImpellerContext () 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 |
sk_sp< GrDirectContext > | CreateResourceContext () const 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 . | |
Definition at line 18 of file embedder_surface_metal.h.
flutter::EmbedderSurfaceMetal::EmbedderSurfaceMetal | ( | GPUMTLDeviceHandle | device, |
GPUMTLCommandQueueHandle | command_queue, | ||
MetalDispatchTable | dispatch_table, | ||
std::shared_ptr< EmbedderExternalViewEmbedder > | external_view_embedder | ||
) |
Definition at line 17 of file embedder_surface_metal.mm.
|
overridedefault |
|
overrideprivatevirtual |
Implements flutter::EmbedderSurface.
Definition at line 40 of file embedder_surface_metal.mm.
|
overrideprivatevirtual |
Reimplemented from flutter::EmbedderSurface.
Definition at line 60 of file embedder_surface_metal.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 64 of file embedder_surface_metal.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 74 of file embedder_surface_metal.mm.
|
overrideprivatevirtual |
Implements flutter::EmbedderSurface.
Definition at line 36 of file embedder_surface_metal.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 69 of file embedder_surface_metal.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 78 of file embedder_surface_metal.mm.