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

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

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Work in progress Created 4 years 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/ImageData.idl b/third_party/WebKit/Source/core/html/Float32ImageData.idl
similarity index 79%
copy from third_party/WebKit/Source/core/html/ImageData.idl
copy to third_party/WebKit/Source/core/html/Float32ImageData.idl
index d52d253a70049da153f86574ce21973a3bae0ad3..d096164eb33a21a8fb0a8425d6b5d448dc6ed2c2 100644
--- a/third_party/WebKit/Source/core/html/ImageData.idl
+++ b/third_party/WebKit/Source/core/html/Float32ImageData.idl
@@ -26,16 +26,16 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// https://html.spec.whatwg.org/#dom-imagedata
+// https://github.com/junov/CanvasColorSpace/blob/master/CanvasColorSpaceProposal.md#imagedata
[
- Constructor(unsigned long sw, unsigned long sh),
- Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh),
+ Constructor(unsigned long sw, unsigned long sh, optional ImageDataColorSpace colorSpace = "legacy-srgb"),
+ Constructor(Float32Array data, unsigned long sw, optional unsigned long sh, optional ImageDataColorSpace colorSpace),
Exposed=(Window,Worker),
RaisesException=Constructor,
Justin Novosad 2016/12/08 18:16:35 This is an experimental feature, so the interface
zakerinasab 2016/12/08 20:40:52 Done.
-] interface ImageData {
+] interface Float32ImageData {
readonly attribute unsigned long width;
readonly attribute unsigned long height;
- // TODO(foolip): Expose data.
- // readonly attribute Uint8ClampedArray data;
+ readonly attribute Float32Array data;
Justin Novosad 2016/12/08 18:16:35 this should not be readonly
zakerinasab 2016/12/08 20:40:52 Resolved.
+ readonly attribute ImageDataColorSpace colorSpace;
};

Powered by Google App Engine
This is Rietveld 408576698