Flutter Engine
vulkan_swapchain_stub.cc
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 #include "vulkan_swapchain.h"
6 
7 namespace vulkan {
8 
9 VulkanSwapchain::VulkanSwapchain(const VulkanProcTable& p_vk,
10  const VulkanDevice& device,
11  const VulkanSurface& surface,
12  GrDirectContext* skia_context,
13  std::unique_ptr<VulkanSwapchain> old_swapchain,
14  uint32_t queue_family_index) {}
15 
17 
18 bool VulkanSwapchain::IsValid() const {
19  return false;
20 }
21 
23  return {AcquireStatus::ErrorSurfaceLost, nullptr};
24 }
25 
27  return false;
28 }
29 
30 SkISize VulkanSwapchain::GetSize() const {
31  return SkISize::Make(0, 0);
32 }
33 
34 } // namespace vulkan
std::pair< AcquireStatus, sk_sp< SkSurface > > AcquireResult
VulkanSwapchain(const VulkanProcTable &vk, const VulkanDevice &device, const VulkanSurface &surface, GrDirectContext *skia_context, std::unique_ptr< VulkanSwapchain > old_swapchain, uint32_t queue_family_index)
AcquireResult AcquireSurface()