Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
flutter::GPUSurfaceVulkanDelegate Class Referenceabstract

Interface implemented by all platform surfaces that can present a Vulkan backing store to the "screen". The GPU surface abstraction (which abstracts the client rendering API) uses this delegation pattern to tell the platform surface (which abstracts how backing stores fulfilled by the selected client rendering API end up on the "screen" on a particular platform) when the rasterizer needs to allocate and present the Vulkan backing store. More...

#include <gpu_surface_vulkan_delegate.h>

Inheritance diagram for flutter::GPUSurfaceVulkanDelegate:
flutter::EmbedderSurfaceVulkan

Public Member Functions

virtual ~GPUSurfaceVulkanDelegate ()
 
virtual const vulkan::VulkanProcTablevk ()=0
 Obtain a reference to the Vulkan implementation's proc table. More...
 
virtual FlutterVulkanImage AcquireImage (const SkISize &size)=0
 Called by the engine to fetch a VkImage for writing the next frame. More...
 
virtual bool PresentImage (VkImage image, VkFormat format)=0
 Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing. More...
 

Detailed Description

Interface implemented by all platform surfaces that can present a Vulkan backing store to the "screen". The GPU surface abstraction (which abstracts the client rendering API) uses this delegation pattern to tell the platform surface (which abstracts how backing stores fulfilled by the selected client rendering API end up on the "screen" on a particular platform) when the rasterizer needs to allocate and present the Vulkan backing store.

See also
|EmbedderSurfaceVulkan|.

Definition at line 29 of file gpu_surface_vulkan_delegate.h.

Constructor & Destructor Documentation

◆ ~GPUSurfaceVulkanDelegate()

flutter::GPUSurfaceVulkanDelegate::~GPUSurfaceVulkanDelegate ( )
virtualdefault

Member Function Documentation

◆ AcquireImage()

virtual FlutterVulkanImage flutter::GPUSurfaceVulkanDelegate::AcquireImage ( const SkISize size)
pure virtual

Called by the engine to fetch a VkImage for writing the next frame.

Implemented in flutter::EmbedderSurfaceVulkan.

◆ PresentImage()

virtual bool flutter::GPUSurfaceVulkanDelegate::PresentImage ( VkImage  image,
VkFormat  format 
)
pure virtual

Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing.

Implemented in flutter::EmbedderSurfaceVulkan.

◆ vk()

virtual const vulkan::VulkanProcTable & flutter::GPUSurfaceVulkanDelegate::vk ( )
pure virtual

Obtain a reference to the Vulkan implementation's proc table.

Implemented in flutter::EmbedderSurfaceVulkan.


The documentation for this class was generated from the following files: