[Impeller] dont create mipmap when mipcount == 1 (flutter/engine#39950)

[Impeller] dont create mipmap when mipcount == 1
This commit is contained in:
Jonah Williams 2023-02-28 11:47:07 -08:00 committed by GitHub
parent c55ce6d9be
commit 833a31300a

View File

@ -248,7 +248,7 @@ sk_sp<DlImage> ImageDecoderImpeller::UploadTexture(
texture->SetLabel(impeller::SPrintF("ui.Image(%p)", texture.get()).c_str());
{
if (texture_descriptor.mip_count > 1u) {
auto command_buffer = context->CreateCommandBuffer();
if (!command_buffer) {
FML_DLOG(ERROR)