Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ImageOperations::Resize to handle OOM.
ImageOperations::Resize must allocate a backing buffer for the resized image. It is already attempting to handle OOM by returning an empty image on failure. However, it is calling allocPixels which will crash if the allocation is not satisfiable instead of tryAllocPixels which can return a status to state if the allocation succeeded. Bug: chromium:1182512 Change-Id: I44843f681655029f45c235c325acaec3588b64a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2737215 Reviewed-by: Mike Klein <mtklein@google.com> Commit-Queue: Ben Wagner <bungeman@chromium.org> Cr-Commit-Position: refs/heads/master@{#860005}
- Loading branch information