Add a null check to AndroidImageGenerator::GetPixels (flutter/engine#34149)

This commit is contained in:
Jason Simmons
2022-06-23 13:39:04 -07:00
committed by GitHub
parent aaa190f632
commit 1243cc12c6

View File

@@ -52,6 +52,10 @@ bool AndroidImageGenerator::GetPixels(const SkImageInfo& info,
std::optional<unsigned int> prior_frame) {
fully_decoded_latch_.Wait();
if (!software_decoded_data_) {
return false;
}
if (kRGBA_8888_SkColorType != info.colorType()) {
return false;
}