Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e9af57b86e4d575626553d667fa60595ffbd688c
https://github.com/WebKit/WebKit/commit/e9af57b86e4d575626553d667fa60595ffbd688c
Author: Gerald Squelart <[email protected]>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
A
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-disabled-expected.txt
A
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-disabled.html
A
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-enabled-expected.txt
A
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-enabled.html
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/html/canvas/CanvasRenderingContext2DSettings.h
M Source/WebCore/html/canvas/CanvasRenderingContext2DSettings.idl
Log Message:
-----------
Add CanvasRenderingContext2DSettings.pixelFormat to support higher bit depths
https://bugs.webkit.org/show_bug.cgi?id=283281
rdar://problem/140105324
Reviewed by Simon Fraser.
Start supporting different pixel formats in 2D canvas, as per
https://github.com/w3c/ColorWeb-CG/blob/main/canvas_float.md ,
with naming based on Chromium implementation.
This is needed to eventually support HDR.
This adds:
- An unstable preference "CanvasPixelFormatEnabled".
- CanvasRenderingContext2DSettings.pixelFormat of type CanvasPixelFormat,
which can be "uint8" (default) or "float16" for now.
(The property has no effects yet, but can be set and queried.)
*
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-disabled-expected.txt:
Added.
*
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-disabled.html:
Added.
*
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-enabled-expected.txt:
Added.
*
LayoutTests/fast/canvas/CanvasRenderingContext2DSettings-pixelFormat-enabled.html:
Added.
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/html/canvas/CanvasRenderingContext2DSettings.h:
* Source/WebCore/html/canvas/CanvasRenderingContext2DSettings.idl:
Canonical link: https://commits.webkit.org/286934@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes