Revert "Update initialization for GrVkAlloc for Skia change (#4738)" (#4740)

This reverts commit e48e3e101920357dc3f12af1e9ef8c323102ed03.
This commit is contained in:
Brian Osman 2018-03-02 09:31:37 -05:00 committed by GitHub
parent e48e3e1019
commit fb16d6bb8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,17 +264,9 @@ bool VulkanSurface::SetupSkiaSurface(sk_sp<GrContext> context,
return false;
}
// TODO: Once flutter rolls Skia, just use the GrVkAlloc ctor directly in the
// GrVkImageInfo struct.
GrVkAlloc gr_vk_alloc;
gr_vk_alloc.fMemory = vk_memory_;
gr_vk_alloc.fOffset = 0;
gr_vk_alloc.fSize = memory_reqs.size;
gr_vk_alloc.fFlags = 0;
const GrVkImageInfo image_info = {
.fImage = vk_image_,
.fAlloc = gr_vk_alloc,
.fAlloc = {vk_memory_, 0, memory_reqs.size, 0},
.fImageTiling = image_create_info.tiling,
.fImageLayout = image_create_info.initialLayout,
.fFormat = image_create_info.format,