diff options
Diffstat (limited to 'chromium/gpu/command_buffer')
-rw-r--r-- | chromium/gpu/command_buffer/service/external_vk_image_backing.cc | 18 | ||||
-rw-r--r-- | chromium/gpu/command_buffer/service/raster_decoder.cc | 8 |
2 files changed, 14 insertions, 12 deletions
diff --git a/chromium/gpu/command_buffer/service/external_vk_image_backing.cc b/chromium/gpu/command_buffer/service/external_vk_image_backing.cc index 5497b542d6d..05db0f94061 100644 --- a/chromium/gpu/command_buffer/service/external_vk_image_backing.cc +++ b/chromium/gpu/command_buffer/service/external_vk_image_backing.cc @@ -472,8 +472,8 @@ bool ExternalVkImageBacking::BeginAccess( GrBackendSemaphore backend_semaphore; backend_semaphore.initVulkan(vk_semaphore); GrFlushInfo flush_info = { - .fNumSemaphores = 1, - .fSignalSemaphores = &backend_semaphore, + /* .fNumSemaphores = */ 1, + /* .fSignalSemaphores = */ &backend_semaphore, }; gpu::AddVulkanCleanupTaskForSkiaFlush( context_state()->vk_context_provider(), &flush_info); @@ -841,10 +841,12 @@ bool ExternalVkImageBacking::WritePixelsWithCallback( DCHECK(stride == 0 || size().height() * stride <= data_size); VkBufferCreateInfo buffer_create_info = { - .sType = VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, - .size = data_size, - .usage = VK_BUFFER_USAGE_TRANSFER_SRC_BIT, - .sharingMode = VK_SHARING_MODE_EXCLUSIVE, + VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO, + nullptr, + 0, + data_size, + VK_BUFFER_USAGE_TRANSFER_SRC_BIT, + VK_SHARING_MODE_EXCLUSIVE, }; VmaAllocator allocator = @@ -974,8 +976,8 @@ bool ExternalVkImageBacking::WritePixelsWithData( GrBackendSemaphore end_access_backend_semaphore; end_access_backend_semaphore.initVulkan(vk_end_access_semaphore); GrFlushInfo flush_info = { - .fNumSemaphores = 1, - .fSignalSemaphores = &end_access_backend_semaphore, + /* .fNumSemaphores = */ 1, + /* .fSignalSemaphores = */ &end_access_backend_semaphore, }; gr_context->flush(flush_info); diff --git a/chromium/gpu/command_buffer/service/raster_decoder.cc b/chromium/gpu/command_buffer/service/raster_decoder.cc index 09522b82db6..b556b962fa5 100644 --- a/chromium/gpu/command_buffer/service/raster_decoder.cc +++ b/chromium/gpu/command_buffer/service/raster_decoder.cc @@ -649,8 +649,8 @@ class RasterDecoderImpl final : public RasterDecoder, // false, so the begin_semaphores can be released, and end_semaphores can // be signalled. GrFlushInfo flush_info = { - .fNumSemaphores = signal_semaphores.size(), - .fSignalSemaphores = signal_semaphores.data(), + /* .fNumSemaphores = */ signal_semaphores.size(), + /* .fSignalSemaphores = */ signal_semaphores.data(), }; gpu::AddVulkanCleanupTaskForSkiaFlush( shared_context_state_->vk_context_provider(), &flush_info); @@ -986,8 +986,8 @@ void RasterDecoderImpl::Destroy(bool have_context) { // Make sure we flush any pending skia work on this context. if (sk_surface_) { GrFlushInfo flush_info = { - .fNumSemaphores = end_semaphores_.size(), - .fSignalSemaphores = end_semaphores_.data(), + end_semaphores_.size(), + end_semaphores_.data(), }; AddVulkanCleanupTaskForSkiaFlush( shared_context_state_->vk_context_provider(), &flush_info); |