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
parent 875a7141a3
commit 0a805fe7a5

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;
};