ImageData: Remove CanvasColorParams accessors
CanvasColorParams is a poor match for ImageData. It has the same CanvasColorSpace names, but different pixel format support, and unused an unused opacity parameter. Remove the accessor ImageData::GetCanvasColorParams because of this mismatch. Clean up serialization of CanvasColorParams to not use these accessors. Remove ImageData::Create that takes a StaticBitmapImage, since this is not used and is the last place where CanvasColorParams are used. Remove the now-unused helper functions from ImageData ImageDataInCanvasColorSettings and ConvertPixelsFromCanvasPixelFormatToImageDataStorageFormat. Bug: 1150969 Change-Id: Icf8697685ed4d0bfbcee07a47196a2fe4772a2ce Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2548773Reviewed-by:Jeremy Roman <jbroman@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#832000}
Showing
Please register or sign in to comment