Flutter Engine
The Flutter Engine
|
#include <embedder_surface_vulkan.h>
Classes | |
struct | VulkanDispatchTable |
Public Member Functions | |
EmbedderSurfaceVulkan (uint32_t version, VkInstance instance, size_t instance_extension_count, const char **instance_extensions, size_t device_extension_count, const char **device_extensions, VkPhysicalDevice physical_device, VkDevice device, uint32_t queue_family_index, VkQueue queue, const VulkanDispatchTable &vulkan_dispatch_table, std::shared_ptr< EmbedderExternalViewEmbedder > external_view_embedder) | |
~EmbedderSurfaceVulkan () override | |
const vulkan::VulkanProcTable & | vk () override |
Obtain a reference to the Vulkan implementation's proc table. More... | |
FlutterVulkanImage | AcquireImage (const SkISize &size) override |
Called by the engine to fetch a VkImage for writing the next frame. More... | |
bool | PresentImage (VkImage image, VkFormat format) override |
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... | |
Public Member Functions inherited from flutter::EmbedderSurface | |
EmbedderSurface () | |
virtual | ~EmbedderSurface () |
virtual bool | IsValid () const =0 |
virtual std::unique_ptr< Surface > | CreateGPUSurface ()=0 |
virtual std::shared_ptr< impeller::Context > | CreateImpellerContext () const |
virtual sk_sp< GrDirectContext > | CreateResourceContext () const |
Public Member Functions inherited from flutter::GPUSurfaceVulkanDelegate | |
virtual | ~GPUSurfaceVulkanDelegate () |
virtual const vulkan::VulkanProcTable & | vk ()=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... | |
Definition at line 19 of file embedder_surface_vulkan.h.
flutter::EmbedderSurfaceVulkan::EmbedderSurfaceVulkan | ( | uint32_t | version, |
VkInstance | instance, | ||
size_t | instance_extension_count, | ||
const char ** | instance_extensions, | ||
size_t | device_extension_count, | ||
const char ** | device_extensions, | ||
VkPhysicalDevice | physical_device, | ||
VkDevice | device, | ||
uint32_t | queue_family_index, | ||
VkQueue | queue, | ||
const VulkanDispatchTable & | vulkan_dispatch_table, | ||
std::shared_ptr< EmbedderExternalViewEmbedder > | external_view_embedder | ||
) |
Definition at line 21 of file embedder_surface_vulkan.cc.
|
override |
Definition at line 82 of file embedder_surface_vulkan.cc.
|
overridevirtual |
Called by the engine to fetch a VkImage for writing the next frame.
Implements flutter::GPUSurfaceVulkanDelegate.
Definition at line 97 of file embedder_surface_vulkan.cc.
|
overridevirtual |
Called by the engine once a frame has been rendered to the image and it's ready to be bound for further reading/writing.
Implements flutter::GPUSurfaceVulkanDelegate.
Definition at line 102 of file embedder_surface_vulkan.cc.
|
overridevirtual |
Obtain a reference to the Vulkan implementation's proc table.
Implements flutter::GPUSurfaceVulkanDelegate.
Definition at line 92 of file embedder_surface_vulkan.cc.