Flutter Engine
The Flutter Engine
|
#include <ios_surface_metal_impeller.h>
Public Member Functions | |
IOSSurfaceMetalImpeller (const fml::scoped_nsobject< CAMetalLayer > &layer, const std::shared_ptr< IOSContext > &context) | |
~IOSSurfaceMetalImpeller () | |
Public Member Functions inherited from flutter::IOSSurface | |
std::shared_ptr< IOSContext > | GetContext () const |
virtual | ~IOSSurface () |
Public Member Functions inherited from flutter::GPUSurfaceMetalDelegate | |
GPUSurfaceMetalDelegate (MTLRenderTargetType render_target) | |
Construct a new GPUSurfaceMetalDelegate object with the specified render_target type. | |
virtual | ~GPUSurfaceMetalDelegate () |
MTLRenderTargetType | GetRenderTargetType () |
Private Member Functions | |
bool | IsValid () const override |
void | UpdateStorageSizeIfNecessary () override |
std::unique_ptr< Surface > | CreateGPUSurface (GrDirectContext *gr_context) override |
GPUCAMetalLayerHandle | GetCAMetalLayer (const SkISize &frame_info) const override __attribute__((cf_audited_transfer)) |
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 __attribute__((cf_audited_transfer)) |
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_info) const override __attribute__((cf_audited_transfer)) |
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 __attribute__((cf_audited_transfer)) |
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 . | |
bool | AllowsDrawingWhenGpuDisabled () const override |
Whether to allow drawing to the surface when the GPU is disabled. | |
Additional Inherited Members | |
Static Public Member Functions inherited from flutter::IOSSurface | |
static std::unique_ptr< IOSSurface > | Create (std::shared_ptr< IOSContext > context, const fml::scoped_nsobject< CALayer > &layer) |
Protected Member Functions inherited from flutter::IOSSurface | |
IOSSurface (std::shared_ptr< IOSContext > ios_context) | |
Definition at line 20 of file ios_surface_metal_impeller.h.
flutter::IOSSurfaceMetalImpeller::IOSSurfaceMetalImpeller | ( | const fml::scoped_nsobject< CAMetalLayer > & | layer, |
const std::shared_ptr< IOSContext > & | context | ||
) |
Definition at line 15 of file ios_surface_metal_impeller.mm.
|
default |
|
overrideprivatevirtual |
Whether to allow drawing to the surface when the GPU is disabled.
Reimplemented from flutter::GPUSurfaceMetalDelegate.
Definition at line 94 of file ios_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Implements flutter::IOSSurface.
Definition at line 41 of file ios_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 50 of file ios_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 79 of file ios_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Implements flutter::IOSSurface.
Definition at line 31 of file ios_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 73 of file ios_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 88 of file ios_surface_metal_impeller.mm.
|
overrideprivatevirtual |
Implements flutter::IOSSurface.
Definition at line 36 of file ios_surface_metal_impeller.mm.