Index: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DSettings.idl |
diff --git a/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DSettings.idl b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DSettings.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9537e7847405b13ec3c9d5912b42ccd8d4caa0ee |
--- /dev/null |
+++ b/third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DSettings.idl |
@@ -0,0 +1,15 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+[PermissiveDictionaryConversion] |
+dictionary CanvasRenderingContext2DSettings { |
+ boolean alpha = true; |
+ |
+ // TODO(crbug.com/637288): Do we keep "legacy-srgb" as the default? |
+ // Must decide before shipping. |
+ [RuntimeEnabled=ExperimentalCanvasFeatures] CanvasColorSpace colorSpace = "legacy-srgb"; |
+ [RuntimeEnabled=ExperimentalCanvasFeatures] CanvasPixelFormat pixelFormat = "8-8-8-8"; |
+ [RuntimeEnabled=ExperimentalCanvasFeatures] boolean linearPixelMath = false; |
+}; |
+ |