Flutter Engine
 
Loading...
Searching...
No Matches
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
14namespace impeller::interop {
15
16class 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
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(const SwapchainVK &)=delete
SwapchainVK & operator=(const SwapchainVK &)=delete
ScopedObject< SurfaceVK > AcquireNextSurface()
VkSurfaceKHR surface
Definition main.cc:65