Update ImageBitmap to use SkPixmap::readPixels
The helper function ImageData::ImageDataInCanvasColorSettings is used to convert between pixel formats and color spaces, using SkCMS. A simpler and more robust way to do this is to call SkPixmap::readPixels, specifying the desired format. ImageBitmap::ImageBitmap does this to create a bitmap from ImageData. R=yiyix TBR=fserb Bug: 1150969 Change-Id: I23e37d74d0a3519fafc9860e6b932a8fdb1a0e4c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2551225 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Yi Xu <yiyix@chromium.org> Cr-Commit-Position: refs/heads/master@{#829964}
Showing
Please register or sign in to comment