forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vulkan_swapchain_stub.cc
34 lines (25 loc) · 994 Bytes
/
vulkan_swapchain_stub.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "vulkan_swapchain.h"
namespace vulkan {
VulkanSwapchain::VulkanSwapchain(const VulkanProcTable& p_vk,
const VulkanDevice& device,
const VulkanSurface& surface,
GrDirectContext* skia_context,
std::unique_ptr<VulkanSwapchain> old_swapchain,
uint32_t queue_family_index) {}
VulkanSwapchain::~VulkanSwapchain() = default;
bool VulkanSwapchain::IsValid() const {
return false;
}
VulkanSwapchain::AcquireResult VulkanSwapchain::AcquireSurface() {
return {AcquireStatus::ErrorSurfaceLost, nullptr};
}
bool VulkanSwapchain::Submit() {
return false;
}
SkISize VulkanSwapchain::GetSize() const {
return SkISize::Make(0, 0);
}
} // namespace vulkan