Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 2b14f8a

Browse files
[Impeller] use host image upload path on simulator (#42161)
This might help with flutter/flutter#126768 (comment)
1 parent f471b37 commit 2b14f8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ui/painting/image_decoder_impeller.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ void ImageDecoderImpeller::Decode(fml::RefPtr<ImageDescriptor> descriptor,
417417
bitmap_result.value()]() {
418418
// TODO(jonahwilliams): remove ifdef once blit from buffer to texture is
419419
// implemented on other platforms.
420-
#ifdef FML_OS_IOS
420+
#if (FML_OS_IOS && !TARGET_IPHONE_SIMULATOR)
421421
result(UploadTextureToPrivate(context, bitmap_result.device_buffer,
422422
bitmap_result.image_info));
423423
#else

0 commit comments

Comments
 (0)