[Bug 13800] New: Add ArrayBuffer to Transferable types list (2.8.4); update Structured clone algorithm

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13800

           Summary: Add ArrayBuffer to Transferable types list (2.8.4);
                    update Structured clone algorithm
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: travil@microsoft.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org
        Depends on: 12586


In order to support suggested changes in CanvasPixelArray -> Uint8ClampedArray
(per bug 12586), ArrayBuffer should be specified as a Transferable type in
section 2.8.4.

Furthermore, in the structured clone algorithm, the cloning of ImageData should
be updated to allow the ImageData's Uint8ClampedArray to be transferred:

Current text:
↪If input is a ImageData object
Let output be a newly constructed ImageData object with the same width and
height as input, and with a newly constructed CanvasPixelArray for its data
attribute, with the same length and pixel values as the input's.

Proposed change:
↪If input is a ImageData object
Let output be a newly constructed ImageData object with the same width and
height as input, and with a newly constructed Uint8ClampedArray view of the
ArrayBuffer in the destination object of memory for its data attribute, with
the same length and pixel values as the input's.

...or similar text to indicate that if the ImageData's Uint8ClampedArray's
ArrayBuffer is transfered, then the new Uint8ClampedArray instance will be
created over the transferred ArrayBuffer.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Wednesday, 17 August 2011 00:12:09 UTC