Skip to content

Commit

Permalink
Revert "Update initialization for GrVkAlloc for Skia change (flutter#…
Browse files Browse the repository at this point in the history
…4738)" (flutter#4740)

This reverts commit e48e3e1.
  • Loading branch information
brianosman authored Mar 2, 2018
1 parent e48e3e1 commit fb16d6b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions content_handler/vulkan_surface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb16d6b

Please sign in to comment.