[Impeller] use host image upload path on simulator (flutter/engine#42161)

This might help with https://github.com/flutter/flutter/issues/126768#issuecomment-1554469333
This commit is contained in:
Jonah Williams 2023-05-19 09:51:51 -07:00 committed by GitHub
parent ebe810b435
commit edf62bb82b

View File

@ -417,7 +417,7 @@ void ImageDecoderImpeller::Decode(fml::RefPtr<ImageDescriptor> descriptor,
bitmap_result.value()]() {
// TODO(jonahwilliams): remove ifdef once blit from buffer to texture is
// implemented on other platforms.
#ifdef FML_OS_IOS
#if (FML_OS_IOS && !TARGET_IPHONE_SIMULATOR)
result(UploadTextureToPrivate(context, bitmap_result.device_buffer,
bitmap_result.image_info));
#else