Investigate ImageBitmap->GetImageWithAlphaDisposition with extended sRGB |
||
Issue descriptionGetImageWithAlphaDisposition is a static utility function in ImageBitmap.cpp. There are two things that need more consideration when extended sRGB is introduced to the proposal and supported by Skia: - The unpremul always happens in gamma encoded space. - For premul, sRGB gamma curve is avoided by comparing the image color space to sRGB.
,
Sep 25
This should work fine when Skia supports ex-sRGB. The code now has changed to draw on a canvas for premul and use readPixels() for unpremul. |
||
►
Sign in to add a comment |
||
Comment 1 by junov@chromium.org
, Jul 25