Update how create a null GrVkAlloc object. (flutter/engine#4714)

When resetting to a null GrVkAlloc alloc use the default ctor instead of the { } initializer. This is needed so an upcoming Skia change doesn't break the flutter build.
This commit is contained in:
egdaniel
2018-02-26 09:51:46 -05:00
committed by Brian Osman
parent 95d52d543c
commit b0e6b1b55e

View File

@@ -199,7 +199,7 @@ sk_sp<SkSurface> VulkanSwapchain::CreateSkiaSurface(GrContext* gr_context,
const GrVkImageInfo image_info = {
.fImage = image,
.fAlloc = {VK_NULL_HANDLE, 0, 0, 0},
.fAlloc = GrVkAlloc(),
.fImageTiling = VK_IMAGE_TILING_OPTIMAL,
.fImageLayout = VK_IMAGE_LAYOUT_UNDEFINED,
.fFormat = surface_format_.format,