Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

impeller/renderer/backend/vulkan/android/ahb_texture_source_vk.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ static TextureDescriptor ToTextureDescriptor(
281281
desc.mip_count = (ahb_desc.usage & AHARDWAREBUFFER_USAGE_GPU_MIPMAP_COMPLETE)
282282
? ahb_size.MipCount()
283283
: 1u;
284+
if (ahb_desc.usage & AHARDWAREBUFFER_USAGE_COMPOSER_OVERLAY) {
285+
desc.usage = TextureUsage::kRenderTarget;
286+
}
284287
return desc;
285288
}
286289

impeller/renderer/backend/vulkan/swapchain/ahb/ahb_texture_pool_vk.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ AHBTexturePoolVK::AHBTexturePoolVK(std::weak_ptr<Context> context,
1616
VALIDATION_LOG << "Swapchain image is not allocatable.";
1717
return;
1818
}
19+
for (auto i = 0u; i < max_entries_; i++) {
20+
pool_.emplace_back(CreateTexture());
21+
}
1922
is_valid_ = true;
2023
}
2124

0 commit comments

Comments
 (0)