LibWeb/HTML: Add CanvasColorType

We don't implement the affected algorithms, and so the only change to
apply here is adding the dictionary member to IDL.

Corresponds to a5853ca8fa
This commit is contained in:
Sam Atkins 2025-02-10 17:12:50 +00:00 committed by Andreas Kling
commit 0a805fe7a5
Notes: github-actions[bot] 2025-02-11 09:40:43 +00:00

View file

@ -17,11 +17,13 @@
#import <HTML/Canvas/CanvasUserInterface.idl>
enum PredefinedColorSpace { "srgb", "display-p3" };
enum CanvasColorType { "unorm8", "float16" };
dictionary CanvasRenderingContext2DSettings {
boolean alpha = true;
boolean desynchronized = false;
PredefinedColorSpace colorSpace = "srgb";
CanvasColorType colorType = "unorm8";
boolean willReadFrequently = false;
};