Flutter Engine
The Flutter Engine
|
Public Member Functions | |
TestGPUSurfaceMetalDelegate () | |
~TestGPUSurfaceMetalDelegate ()=default | |
GPUCAMetalLayerHandle | GetCAMetalLayer (const SkISize &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 . More... | |
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 . More... | |
GPUMTLTextureInfo | GetMTLTexture (const SkISize &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 . More... | |
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 . More... | |
bool | AllowsDrawingWhenGpuDisabled () const override |
Whether to allow drawing to the surface when the GPU is disabled. More... | |
void | SetDevice () |
Public Member Functions inherited from flutter::GPUSurfaceMetalDelegate | |
GPUSurfaceMetalDelegate (MTLRenderTargetType render_target) | |
Construct a new GPUSurfaceMetalDelegate object with the specified render_target type. More... | |
virtual | ~GPUSurfaceMetalDelegate () |
virtual GPUCAMetalLayerHandle | GetCAMetalLayer (const SkISize &frame_info) const =0 |
Returns the handle to the CAMetalLayer to render to. This is only called when the specified render target type is kCAMetalLayer . More... | |
virtual bool | PresentDrawable (GrMTLHandle drawable) const =0 |
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 . More... | |
virtual GPUMTLTextureInfo | GetMTLTexture (const SkISize &frame_info) const =0 |
Returns the handle to the MTLTexture to render to. This is only called when the specified render target type is kMTLTexture . More... | |
virtual bool | PresentTexture (GPUMTLTextureInfo texture) const =0 |
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 . More... | |
virtual bool | AllowsDrawingWhenGpuDisabled () const |
Whether to allow drawing to the surface when the GPU is disabled. More... | |
MTLRenderTargetType | GetRenderTargetType () |
Definition at line 18 of file gpu_surface_metal_impeller_unittests.mm.
|
inline |
Definition at line 20 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 37 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 26 of file gpu_surface_metal_impeller_unittests.mm.
|
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 33 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 31 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 35 of file gpu_surface_metal_impeller_unittests.mm.
|
inline |
Definition at line 39 of file gpu_surface_metal_impeller_unittests.mm.