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

Unified Diff: third_party/WebKit/Source/core/html/Float32ImageData.idl

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Fixing ImageData::validateConstructorArguments 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/Float32ImageData.idl
diff --git a/third_party/WebKit/Source/core/html/Float32ImageData.idl b/third_party/WebKit/Source/core/html/Float32ImageData.idl
new file mode 100644
index 0000000000000000000000000000000000000000..9446a3c2e749ff95e64f55a82508f1c0859a5630
--- /dev/null
+++ b/third_party/WebKit/Source/core/html/Float32ImageData.idl
@@ -0,0 +1,22 @@
+// 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.
+
+// https://github.com/junov/CanvasColorSpace/blob/master/CanvasColorSpaceProposal.md#imagedata
+
+[
+ Constructor(unsigned long sw, unsigned long sh),
+ Constructor(unsigned long sw, unsigned long sh, ImageDataColorSpace colorSpace),
+ Constructor(Float32Array data, unsigned long sw),
+ Constructor(Float32Array data, unsigned long sw, unsigned long sh),
+ Constructor(Float32Array data, unsigned long sw, unsigned long sh, ImageDataColorSpace colorSpace),
+
+ Exposed=(Window,Worker),
+ RaisesException=Constructor,
+ RuntimeEnabled=ExperimentalCanvasFeatures,
+] interface Float32ImageData {
+ readonly attribute unsigned long width;
+ readonly attribute unsigned long height;
+ readonly attribute Float32Array data;
+ readonly attribute ImageDataColorSpace colorSpace;
+};
« no previous file with comments | « third_party/WebKit/Source/core/html/Float32ImageData.cpp ('k') | third_party/WebKit/Source/core/html/ImageData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698