Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions lib/ui/painting/image_decoder_impeller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,11 @@ void ImageDecoderImpeller::Decode(fml::RefPtr<ImageDescriptor> descriptor,
});
};

#ifdef FML_OS_ANDROID
runners_.GetIOTaskRunner()->PostTask(
#else
concurrent_task_runner_->PostTask(
#endif
[raw_descriptor, //
context = context_.get(), //
target_size = SkISize::Make(target_width, target_height), //
Expand Down Expand Up @@ -495,12 +499,16 @@ void ImageDecoderImpeller::Decode(fml::RefPtr<ImageDescriptor> descriptor,
result(image, decode_error);
}
};
// TODO(jonahwilliams):
// https://github.com/flutter/flutter/issues/123058 Technically we
// don't need to post tasks to the io runner, but without this
// forced serialization we can end up overloading the GPU and/or
// competing with raster workloads.
// TODO(jonahwilliams):
// https://github.com/flutter/flutter/issues/123058 Technically we
// don't need to post tasks to the io runner, but without this
// forced serialization we can end up overloading the GPU and/or
// competing with raster workloads.
#ifdef FML_OS_ANDROID
upload_texture_and_invoke_result();
#else
io_runner->PostTask(upload_texture_and_invoke_result);
#endif
});
}

Expand Down