From ff49f860590239995620f675dd83088799260c5e Mon Sep 17 00:00:00 2001 From: Brian Osman Date: Wed, 11 Apr 2018 14:52:28 -0400 Subject: [PATCH] Remove named field initialization of GrVkImageInfo (flutter/engine#4972) This syntax fails in conjunction with the new 6-argument constructor that's been added. Fields were already initialized in the correct order, so simply omit the field names. Once the constructor lands, this will switch to calling that. --- engine/src/flutter/vulkan/vulkan_swapchain.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/vulkan/vulkan_swapchain.cc b/engine/src/flutter/vulkan/vulkan_swapchain.cc index 887cf0ad0d..b00c8afc87 100644 --- a/engine/src/flutter/vulkan/vulkan_swapchain.cc +++ b/engine/src/flutter/vulkan/vulkan_swapchain.cc @@ -223,12 +223,12 @@ sk_sp VulkanSwapchain::CreateSkiaSurface( } const GrVkImageInfo image_info = { - .fImage = image, - .fAlloc = GrVkAlloc(), - .fImageTiling = VK_IMAGE_TILING_OPTIMAL, - .fImageLayout = VK_IMAGE_LAYOUT_UNDEFINED, - .fFormat = surface_format_.format, - .fLevelCount = 1, + image, // image + GrVkAlloc(), // alloc + VK_IMAGE_TILING_OPTIMAL, // tiling + VK_IMAGE_LAYOUT_UNDEFINED, // layout + surface_format_.format, // format + 1, // level count }; // TODO(chinmaygarde): Setup the stencil buffer and the sampleCnt.