summaryrefslogtreecommitdiff
path: root/chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc')
-rw-r--r--chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc b/chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc
index 9e08c403f21..f7f0427f6ec 100644
--- a/chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc
+++ b/chromium/gpu/command_buffer/service/external_vk_image_dawn_representation.cc
@@ -23,14 +23,14 @@ ExternalVkImageDawnRepresentation::ExternalVkImageDawnRepresentation(
SharedImageManager* manager,
SharedImageBacking* backing,
MemoryTypeTracker* tracker,
- DawnDevice device,
- DawnTextureFormat dawn_format,
+ WGPUDevice device,
+ WGPUTextureFormat wgpu_format,
int memory_fd,
VkDeviceSize allocation_size,
uint32_t memory_type_index)
: SharedImageRepresentationDawn(manager, backing, tracker),
device_(device),
- dawn_format_(dawn_format),
+ wgpu_format_(wgpu_format),
memory_fd_(memory_fd),
allocation_size_(allocation_size),
memory_type_index_(memory_type_index),
@@ -47,19 +47,19 @@ ExternalVkImageDawnRepresentation::~ExternalVkImageDawnRepresentation() {
dawn_procs_.deviceRelease(device_);
}
-DawnTexture ExternalVkImageDawnRepresentation::BeginAccess(
- DawnTextureUsage usage) {
+WGPUTexture ExternalVkImageDawnRepresentation::BeginAccess(
+ WGPUTextureUsage usage) {
std::vector<SemaphoreHandle> handles;
if (!backing_impl()->BeginAccess(false, &handles, false /* is_gl */)) {
return nullptr;
}
- DawnTextureDescriptor texture_descriptor = {};
+ WGPUTextureDescriptor texture_descriptor = {};
texture_descriptor.nextInChain = nullptr;
- texture_descriptor.format = dawn_format_;
+ texture_descriptor.format = wgpu_format_;
texture_descriptor.usage = usage;
- texture_descriptor.dimension = DAWN_TEXTURE_DIMENSION_2D;
+ texture_descriptor.dimension = WGPUTextureDimension_2D;
texture_descriptor.size = {size().width(), size().height(), 1};
texture_descriptor.arrayLayerCount = 1;
texture_descriptor.mipLevelCount = 1;
@@ -81,7 +81,7 @@ DawnTexture ExternalVkImageDawnRepresentation::BeginAccess(
descriptor.waitFDs.push_back(handle.TakeHandle().release());
}
- texture_ = dawn_native::vulkan::WrapVulkanImageOpaqueFD(device_, &descriptor);
+ texture_ = dawn_native::vulkan::WrapVulkanImage(device_, &descriptor);
if (texture_) {
// Keep a reference to the texture so that it stays valid (its content