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

Unified Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DSettings.idl

Issue 2708403003: Implement canvas color space IDL format for 2D canvas (Closed)
Patch Set: Addressing GPU pixel test failures Created 3 years, 10 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/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;
+};
+

Powered by Google App Engine
This is Rietveld 408576698