| Index: third_party/WebKit/Source/core/html/canvas/CanvasContextCreationAttributes.idl
|
| diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasContextCreationAttributes.idl b/third_party/WebKit/Source/core/html/canvas/CanvasContextCreationAttributes.idl
|
| index ff24c90ab2c05478cb9eabbf3ff8a8934cd9b414..5063c92163f2fff9a292c61ca80ba7058f2f8f36 100644
|
| --- a/third_party/WebKit/Source/core/html/canvas/CanvasContextCreationAttributes.idl
|
| +++ b/third_party/WebKit/Source/core/html/canvas/CanvasContextCreationAttributes.idl
|
| @@ -21,11 +21,14 @@
|
| //
|
| // N.B.: Web IDL doesn't support multiple inheritance of dictionaries.
|
|
|
| +
|
| +enum CanvasColorSpace { "legacy-srgb", "srgb", "linear-rgb", "rec-2020", "p3"};
|
| +
|
| [PermissiveDictionaryConversion]
|
| dictionary CanvasContextCreationAttributes {
|
| // Canvas 2D attributes
|
| boolean alpha = true; // Also used for WebGL.
|
| - [RuntimeEnabled=ExperimentalCanvasFeatures] DOMString colorSpace = "legacy-srgb";
|
| + [RuntimeEnabled=ExperimentalCanvasFeatures] CanvasColorSpace colorSpace = "legacy-srgb";
|
|
|
| // WebGL attributes
|
| boolean depth = true;
|
|
|