Flutter Engine
The Flutter Engine
vulkan
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
16
VulkanSwapchain::~VulkanSwapchain
() =
default
;
17
18
bool
VulkanSwapchain::IsValid
()
const
{
19
return
false
;
20
}
21
22
VulkanSwapchain::AcquireResult
VulkanSwapchain::AcquireSurface
() {
23
return
{
AcquireStatus::ErrorSurfaceLost
,
nullptr
};
24
}
25
26
bool
VulkanSwapchain::Submit
() {
27
return
false
;
28
}
29
30
SkISize
VulkanSwapchain::GetSize
()
const
{
31
return
SkISize::Make
(0, 0);
32
}
33
34
}
// namespace vulkan
GrDirectContext
Definition:
GrDirectContext.h:60
vulkan::VulkanSwapchain::AcquireSurface
AcquireResult AcquireSurface()
Definition:
vulkan_swapchain.cc:334
vulkan::VulkanSwapchain::GetSize
SkISize GetSize() const
Definition:
vulkan_swapchain.cc:202
vulkan::VulkanSwapchain::Submit
bool Submit()
Definition:
vulkan_swapchain.cc:495
vulkan::VulkanSwapchain::~VulkanSwapchain
~VulkanSwapchain()
vulkan::VulkanSwapchain::IsValid
bool IsValid() const
Definition:
vulkan_swapchain.cc:174
vulkan::VulkanSwapchain::AcquireResult
std::pair< AcquireStatus, sk_sp< SkSurface > > AcquireResult
Definition:
vulkan_swapchain.h:50
vulkan::VulkanSwapchain::AcquireStatus::ErrorSurfaceLost
@ ErrorSurfaceLost
vulkan::VulkanSwapchain::VulkanSwapchain
VulkanSwapchain(const VulkanProcTable &vk, const VulkanDevice &device, const VulkanSurface &surface, GrDirectContext *skia_context, std::unique_ptr< VulkanSwapchain > old_swapchain, uint32_t queue_family_index)
Definition:
vulkan_swapchain.cc:45
device
VkDevice device
Definition:
main.cc:53
queue_family_index
uint32_t queue_family_index
Definition:
main.cc:54
surface
VkSurfaceKHR surface
Definition:
main.cc:49
vulkan
Definition:
vulkan_handle.cc:7
SkISize
Definition:
SkSize.h:16
SkISize::Make
static constexpr SkISize Make(int32_t w, int32_t h)
Definition:
SkSize.h:20
vulkan_swapchain.h
Generated on Sun Jun 23 2024 21:56:54 for Flutter Engine by
1.9.4