Bug 283281

Summary: Add CanvasRenderingContext2DSettings.pixelFormat to support higher bit depths
Product: WebKit Reporter: Gerald Squelart <g_squelart>
Component: CanvasAssignee: Gerald Squelart <g_squelart>
Status: RESOLVED FIXED    
Severity: Enhancement CC: sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 283539    

Gerald Squelart
Reported 2024-11-17 23:41:54 PST
Start supporting HDR in 2D canvas, as per https://github.com/w3c/ColorWeb-CG/blob/main/hdr_html_canvas_element.md This will add CanvasRenderingContext2DSettings.dataType of type CanvasDataType, which can be "unorm8" (default) or "float16" for now. (The property will have no effects yet, but can be set and queried.)
Attachments
Radar WebKit Bug Importer
Comment 1 2024-11-17 23:42:02 PST
Gerald Squelart
Comment 2 2024-11-17 23:45:18 PST
EWS
Comment 3 2024-11-21 16:13:39 PST
Committed 286934@main (e9af57b86e4d): <https://commits.webkit.org/286934@main> Reviewed commits have been landed. Closing PR #36785 and removing active labels.
Gerald Squelart
Comment 4 2024-11-21 17:24:37 PST
Switched from `dataType` to `pixelFormat`, to match another experimental implementation; names still subject to change anyway, but it's easier to test&compare by using the same names.
Note You need to log in before you can comment on or make changes to this bug.