diff --git a/engine/src/flutter/shell/platform/android/android_image_generator.cc b/engine/src/flutter/shell/platform/android/android_image_generator.cc index c53e36e3cb..d5255af97b 100644 --- a/engine/src/flutter/shell/platform/android/android_image_generator.cc +++ b/engine/src/flutter/shell/platform/android/android_image_generator.cc @@ -52,6 +52,10 @@ bool AndroidImageGenerator::GetPixels(const SkImageInfo& info, std::optional prior_frame) { fully_decoded_latch_.Wait(); + if (!software_decoded_data_) { + return false; + } + if (kRGBA_8888_SkColorType != info.colorType()) { return false; }