From 52b5bc534037453d3108c51f5338b3425527885c Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Tue, 23 May 2023 11:22:47 -0700 Subject: [PATCH] Revert "[Impeller] use host image upload path on simulator" (flutter/engine#42212) Reverts flutter/engine#42161 As reported by uses, this did not help with the issue. --- 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 9238e10ad4..a2fce06f16 100644 --- a/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc +++ b/engine/src/flutter/lib/ui/painting/image_decoder_impeller.cc @@ -452,7 +452,7 @@ void ImageDecoderImpeller::Decode(fml::RefPtr descriptor, // texture is implemented on other platforms. sk_sp image; std::string decode_error; -#if (FML_OS_IOS && !TARGET_IPHONE_SIMULATOR) +#ifdef FML_OS_IOS std::tie(image, decode_error) = UploadTextureToPrivate( context, bitmap_result.device_buffer, bitmap_result.image_info); #else