#include "gpu/vulkan/vulkan_implementation.h"
#include "base/functional/bind.h"
#include "gpu/vulkan/vulkan_device_queue.h"
#include "gpu/vulkan/vulkan_function_pointers.h"
#include "gpu/vulkan/vulkan_instance.h"
#include "gpu/vulkan/vulkan_util.h"
namespace gpu {
VulkanImplementation::VulkanImplementation(bool use_swiftshader,
bool allow_protected_memory)
: … { … }
VulkanImplementation::~VulkanImplementation() { … }
std::unique_ptr<VulkanDeviceQueue> CreateVulkanDeviceQueue(
VulkanImplementation* vulkan_implementation,
uint32_t option,
const GPUInfo* gpu_info,
uint32_t heap_memory_limit,
const bool is_thread_safe) { … }
VkSemaphore VulkanImplementation::CreateExternalSemaphore(VkDevice vk_device) { … }
VkSemaphore VulkanImplementation::ImportSemaphoreHandle(
VkDevice vk_device,
SemaphoreHandle sync_handle) { … }
SemaphoreHandle VulkanImplementation::GetSemaphoreHandle(
VkDevice vk_device,
VkSemaphore vk_semaphore) { … }
bool VulkanImplementation::IsExternalSemaphoreSupported(
VulkanDeviceQueue* device_queue) { … }
}