| 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 77%
|
| copy from third_party/WebKit/Source/core/html/ImageData.idl
|
| copy to third_party/WebKit/Source/core/html/Float32ImageData.idl
|
| index d52d253a70049da153f86574ce21973a3bae0ad3..d329a353a6ab3b0eb4e16950144661d6a4e36952 100644
|
| --- a/third_party/WebKit/Source/core/html/ImageData.idl
|
| +++ b/third_party/WebKit/Source/core/html/Float32ImageData.idl
|
| @@ -26,16 +26,17 @@
|
| * 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,
|
| -] interface ImageData {
|
| + RuntimeEnabled=ExperimentalCanvasFeatures,
|
| +] interface Float32ImageData {
|
| readonly attribute unsigned long width;
|
| readonly attribute unsigned long height;
|
| - // TODO(foolip): Expose data.
|
| - // readonly attribute Uint8ClampedArray data;
|
| + readonly attribute Float32Array data;
|
| + readonly attribute ImageDataColorSpace colorSpace;
|
| };
|
|
|