Public Member Functions | |
| TestGPUSurfaceMetalDelegate () | |
| ~TestGPUSurfaceMetalDelegate ()=default | |
| GPUCAMetalLayerHandle | GetCAMetalLayer (const DlISize &frame_info) 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 DlISize &frame_info) 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. | |
| bool | AllowsDrawingWhenGpuDisabled () const override |
| Whether to allow drawing to the surface when the GPU is disabled. | |
| void | SetDevice () |
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 | PreparePresent (GrMTLHandle drawable) const |
| MTLRenderTargetType | GetRenderTargetType () |
Definition at line 20 of file gpu_surface_metal_impeller_unittests.mm.
|
inline |
Definition at line 22 of file gpu_surface_metal_impeller_unittests.mm.
|
default |
|
inlineoverridevirtual |
Whether to allow drawing to the surface when the GPU is disabled.
Reimplemented from flutter::GPUSurfaceMetalDelegate.
Definition at line 39 of file gpu_surface_metal_impeller_unittests.mm.
|
inlineoverridevirtual |
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 28 of file gpu_surface_metal_impeller_unittests.mm.
References impeller::TSize< T >::height, and impeller::TSize< T >::width.
|
inlineoverridevirtual |
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 35 of file gpu_surface_metal_impeller_unittests.mm.
|
inlineoverridevirtual |
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 33 of file gpu_surface_metal_impeller_unittests.mm.
|
inlineoverridevirtual |
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 37 of file gpu_surface_metal_impeller_unittests.mm.
|
inline |
Definition at line 41 of file gpu_surface_metal_impeller_unittests.mm.