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

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: Rebaseline 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..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;

Powered by Google App Engine
This is Rietveld 408576698