mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This reverts commit e48e3e101920357dc3f12af1e9ef8c323102ed03.
This commit is contained in:
parent
e48e3e1019
commit
fb16d6bb8b
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user