Check canvas color correction pipeline to be HDR |
|||
Issue descriptionThe color correction pipeline in canvas should not clip the HDR values. The compositor will take care of clipping if necessary.
,
Jul 25
,
Oct 11
There is no explicit clipping anywhere in canvas code. Color conversion may cause clipping if the destination gamut does not support HDR values. Other than that, some API like getImageData (when returning uint8 or unit16 array) do clip by definition.
,
Oct 24
We have HDR test for ImageData in third_party/WebKit/LayoutTests/fast/canvas/color-space/canvas-getImageData-e_srgb.html. What remains for now is to add a proper HDR test to third_party/WebKit/LayoutTests/fast/canvas/color-space/canvas-drawImage-e_srgb.html.
,
Oct 24
And may be drawing a canvas on canvas. In fact it might be better to add a layout test specifically to test HDR, covering: - drawImage for canvas and OffscreenCanvas - createImageBitmap - convertToBlob - get/putImageData |
|||
►
Sign in to add a comment |
|||
Comment 1 by zakerinasab@chromium.org
, Nov 27 2017