From d3452af714cc40046a1ad4b6428b1b918084fb83 Mon Sep 17 00:00:00 2001 From: jonahwilliams Date: Fri, 19 May 2023 08:59:16 -0700 Subject: [PATCH] [Impeller] use host image upload path on simulator --- lib/ui/painting/image_decoder_impeller.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/painting/image_decoder_impeller.cc b/lib/ui/painting/image_decoder_impeller.cc index 037e0c78a277b..5f7c724ed95a9 100644 --- a/lib/ui/painting/image_decoder_impeller.cc +++ b/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