Flutter Engine
The Flutter Engine
|
#include <vulkan_swapchain.h>
Public Types | |
enum class | AcquireStatus { Success , ErrorSurfaceLost , ErrorSurfaceOutOfDate } |
using | AcquireResult = std::pair< AcquireStatus, sk_sp< SkSurface > > |
Public Member Functions | |
VulkanSwapchain (const VulkanProcTable &vk, const VulkanDevice &device, const VulkanSurface &surface, GrDirectContext *skia_context, std::unique_ptr< VulkanSwapchain > old_swapchain, uint32_t queue_family_index) | |
~VulkanSwapchain () | |
bool | IsValid () const |
AcquireResult | AcquireSurface () |
bool | Submit () |
SkISize | GetSize () const |
FML_DISALLOW_COPY_AND_ASSIGN (VulkanSwapchain) | |
Definition at line 26 of file vulkan_swapchain.h.
using vulkan::VulkanSwapchain::AcquireResult = std::pair<AcquireStatus, sk_sp<SkSurface> > |
Definition at line 50 of file vulkan_swapchain.h.
|
strong |
Enumerator | |
---|---|
Success | A valid SkSurface was acquired successfully from the swapchain. |
ErrorSurfaceLost | The underlying surface of the swapchain was permanently lost. This is an unrecoverable error. The entire surface must be recreated along with the swapchain. |
ErrorSurfaceOutOfDate | The swapchain surface is out-of-date with the underlying surface. The swapchain must be recreated. |
Definition at line 39 of file vulkan_swapchain.h.
vulkan::VulkanSwapchain::VulkanSwapchain | ( | const VulkanProcTable & | vk, |
const VulkanDevice & | device, | ||
const VulkanSurface & | surface, | ||
GrDirectContext * | skia_context, | ||
std::unique_ptr< VulkanSwapchain > | old_swapchain, | ||
uint32_t | queue_family_index | ||
) |
Definition at line 45 of file vulkan_swapchain.cc.
|
default |
VulkanSwapchain::AcquireResult vulkan::VulkanSwapchain::AcquireSurface | ( | ) |
Acquire an SkSurface from the swapchain for the caller to render into for later submission via |Submit|. There must not be consecutive calls to |AcquireFrame| without and interleaving |Submit|.
Definition at line 334 of file vulkan_swapchain.cc.
vulkan::VulkanSwapchain::FML_DISALLOW_COPY_AND_ASSIGN | ( | VulkanSwapchain | ) |
SkISize vulkan::VulkanSwapchain::GetSize | ( | ) | const |
Definition at line 202 of file vulkan_swapchain.cc.
bool vulkan::VulkanSwapchain::IsValid | ( | ) | const |
Definition at line 174 of file vulkan_swapchain.cc.
bool vulkan::VulkanSwapchain::Submit | ( | ) |
Submit a previously acquired. There must not be consecutive calls to |Submit| without and interleaving |AcquireFrame|.
Definition at line 495 of file vulkan_swapchain.cc.