Debian Codegraph @

src/gpu/vk/vulkanmemoryallocator/VulkanMemoryAllocatorPriv.h

raw
1 /*
2 * Copyright 2024 Google LLC.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef skgpu_VulkanMemoryAllocatorUtil_DEFINED
9 #define skgpu_VulkanMemoryAllocatorUtil_DEFINED
10
11 #include "include/core/SkRefCnt.h"
12 #include "include/private/base/SkAPI.h"
13 #include "include/private/gpu/vk/SkiaVulkan.h"
14
15 namespace skgpu {
16
17 struct VulkanBackendContext;
18 class VulkanMemoryAllocator;
19 enum class ThreadSafe : bool;
20
21 namespace VulkanMemoryAllocators {
22 // Returns a concrete implementation of a memory allocator. Because this has settings
23 // which are done at compile time, we cannot really expose this to clients in a meaningful way.
24 sk_sp<VulkanMemoryAllocator> Make(const skgpu::VulkanBackendContext&,
25 ThreadSafe);
26
27 } // namespace VulkanMemoryAllocators
28 } // namespace skgpu
29
30 #endif // skgpu_VulkanMemoryAllocatorUtil_DEFINED