mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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:
parent
ebe810b435
commit
edf62bb82b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user