Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Unified Diff: third_party/WebKit/Source/core/html/canvas/CanvasContextCreationAttributes.idl

Issue 2656623002: Add rec-2020 and p3 color spaces to canvas (Closed)
Patch Set: Minor corrections Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698