From edf62bb82b9b3fa5f207aaa359d41e0d341fae3f Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 19 May 2023 09:51:51 -0700 Subject: [PATCH] [Impeller] use host image upload path on simulator (flutter/engine#42161) This might help with https://github.com/flutter/flutter/issues/126768#issuecomment-1554469333 --- engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc index 037e0c78a27..5f7c724ed95 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc @@ -417,7 +417,7 @@ void ImageDecoderImpeller::Decode(fml::RefPtr 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