5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_SWAPCHAIN_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_SWAPCHAIN_SWAPCHAIN_VK_H_
10 #include "flutter/fml/build_config.h"
36 static std::shared_ptr<SwapchainVK>
Create(
37 const std::shared_ptr<Context>& context,
38 vk::UniqueSurfaceKHR surface,
40 bool enable_msaa =
true);
43 static std::shared_ptr<SwapchainVK>
Create(
44 const std::shared_ptr<Context>& context,
45 ANativeWindow* window,
47 bool enable_msaa =
true);
63 std::shared_ptr<CommandBuffer> cmd_buffer)
const = 0;
A swapchain that adapts to the underlying surface going out of date. If the caller cannot acquire the...
virtual bool IsValid() const =0
virtual void AddFinalCommandBuffer(std::shared_ptr< CommandBuffer > cmd_buffer) const =0
SwapchainVK & operator=(const SwapchainVK &)=delete
virtual std::unique_ptr< Surface > AcquireNextDrawable()=0
virtual void UpdateSurfaceSize(const ISize &size)=0
Mark the current swapchain configuration as dirty, forcing it to be recreated on the next frame.
SwapchainVK(const SwapchainVK &)=delete
virtual vk::Format GetSurfaceFormat() const =0
static std::shared_ptr< SwapchainVK > Create(const std::shared_ptr< Context > &context, vk::UniqueSurfaceKHR surface, const ISize &size, bool enable_msaa=true)
std::function< android::SurfaceTransaction()> CreateTransactionCB