Chromium Code Reviews| 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..d611e60b3f247512fc89eff78dc4e582e9c50b0d 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", "linear-rec-2020", "linear-p3"}; |
|
Justin Novosad
2017/01/26 19:12:42
We should match the strings used by the color-gamu
zakerinasab1
2017/01/26 20:42:34
Done.
|
| + |
| [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; |