Add a null check to AndroidImageGenerator::GetPixels (flutter/engine#34149)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user