Flutter Impeller
swapchain_vk.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_VULKAN_SWAPCHAIN_VK_H_
6 #define FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_VULKAN_SWAPCHAIN_VK_H_
7 
13 
14 namespace impeller::interop {
15 
16 class SwapchainVK final
17  : public Object<SwapchainVK,
18  IMPELLER_INTERNAL_HANDLE_NAME(ImpellerVulkanSwapchain)> {
19  public:
20  SwapchainVK(Context& context, VkSurfaceKHR surface);
21 
23 
24  bool IsValid() const;
25 
26  SwapchainVK(const SwapchainVK&) = delete;
27 
28  SwapchainVK& operator=(const SwapchainVK&) = delete;
29 
31 
32  private:
33  ScopedObject<Context> context_;
34  std::shared_ptr<impeller::SwapchainVK> swapchain_;
35 };
36 
37 } // namespace impeller::interop
38 
39 #endif // FLUTTER_IMPELLER_TOOLKIT_INTEROP_BACKEND_VULKAN_SWAPCHAIN_VK_H_
SwapchainVK(Context &context, VkSurfaceKHR surface)
Definition: swapchain_vk.cc:11
SwapchainVK & operator=(const SwapchainVK &)=delete
SwapchainVK(const SwapchainVK &)=delete
ScopedObject< SurfaceVK > AcquireNextSurface()
Definition: swapchain_vk.cc:45