• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "flutter/vulkan/vulkan_swapchain.h"
6 
7 namespace vulkan {
8 
VulkanSwapchain(const VulkanProcTable & p_vk,const VulkanDevice & device,const VulkanSurface & surface,GrContext * skia_context,std::unique_ptr<VulkanSwapchain> old_swapchain,uint32_t queue_family_index)9 VulkanSwapchain::VulkanSwapchain(const VulkanProcTable& p_vk,
10                                  const VulkanDevice& device,
11                                  const VulkanSurface& surface,
12                                  GrContext* skia_context,
13                                  std::unique_ptr<VulkanSwapchain> old_swapchain,
14                                  uint32_t queue_family_index) {}
15 
16 VulkanSwapchain::~VulkanSwapchain() = default;
17 
IsValid() const18 bool VulkanSwapchain::IsValid() const {
19   return false;
20 }
21 
AcquireSurface()22 VulkanSwapchain::AcquireResult VulkanSwapchain::AcquireSurface() {
23   return {AcquireStatus::ErrorSurfaceLost, nullptr};
24 }
25 
Submit()26 bool VulkanSwapchain::Submit() {
27   return false;
28 }
29 
GetSize() const30 SkISize VulkanSwapchain::GetSize() const {
31   return SkISize::Make(0, 0);
32 }
33 
34 }  // namespace vulkan
35