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.
This commit is contained in:
Brian Osman
2018-04-11 14:52:28 -04:00
committed by GitHub
parent 67e3f05590
commit ff49f86059

View File

@@ -223,12 +223,12 @@ sk_sp<SkSurface> 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.