Add Build.Config to Bitmap if missing
There are crashes for gfx::CreateSkBitmapFromJavaBitmap(JavaBitmap) if the JavaBitmap does not have Build#Config info. On Android O and before, MediaStore.Images.Media.getBitmap will return a bitmap without the info if the source image is gif. This CL will regenerate a new bitmap if the bitmap has no info. Bug: 1086990 Change-Id: Icb87d78a079c981270cbe57647c579f181bec5dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2222548Reviewed-by:Khushal <khushalsagar@chromium.org> Reviewed-by:
Sami Kyöstilä <skyostil@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Commit-Queue: Gang Wu <gangwu@chromium.org> Cr-Commit-Position: refs/heads/master@{#774307}
Showing
Please register or sign in to comment