Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
7namespace vulkan {
8
9VulkanSwapchain::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
18bool VulkanSwapchain::IsValid() const {
19 return false;
20}
21
23 return {AcquireStatus::ErrorSurfaceLost, nullptr};
24}
25
27 return false;
28}
29
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)
VkDevice device
Definition main.cc:53
uint32_t queue_family_index
Definition main.cc:54
VkSurfaceKHR surface
Definition main.cc:49
static constexpr SkISize Make(int32_t w, int32_t h)
Definition SkSize.h:20