[Bug 12586] Suggest using Typed Array for ImageData pixels. Add a new 'buffer' attribute that references ArrayBuffer of the pixel data. Convert 'data' (CanvasPixelArray) to Uint8Array view of 'buffer'.

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

--- Comment #6 from Kenneth Russell <kbr@google.com> 2011-07-30 00:40:51 UTC ---
In WebKit, CanvasPixelArray is currently a distinct type from the rest of the
typed arrays. It owns its storage, which is distinct from that of the Canvas's
backing store, and it doesn't expose it in the form of an ArrayBuffer. It would
definitely be possible to respecify it as Uint8ClampedArray and add aliases
(i.e., CanvasPixelArray == Uint8ClampedArray) for backward compatibility.

I'd be glad to see this unification for all of the reasons mentioned here. If
we do go down this route, I would strongly prefer to add only Uint8ClampedArray
to the typed array spec, and not clamped versions of the other typed arrays, to
avoid an explosion of the typed array types.

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

Received on Saturday, 30 July 2011 00:40:59 UTC