[webkit-dev] ArrayBuffer supprot
Kenneth Russell
kbr at google.com
Tue Oct 12 14:17:43 PDT 2010
On Fri, Oct 8, 2010 at 2:46 PM, Jian Li <jianli at chromium.org> wrote:
> Hi,
> I am looking into hooking up ArrayBuffer support in FileReader and
> BlobBuilder. It seems that most of the typed array types (ArrayBuffer,
> ArrayBufferView, Uint8Array, and etc) have already been implemented in
> WebKit, except TypedArray.get() and DataView.
Since most of the other questions have been answered:
https://bugs.webkit.org/show_bug.cgi?id=46541 covers implementation of
DataView. I will try to take care of this in the next week or two. Let
me know if you need it before I've gotten to it.
> Currently all these typed array supports are put under 3D_CANVAS feature
> guard. Since they're going to be widely used in other areas, like File API
> and XHR, should we remove the conditional guard 3D_CANVAS from all the
> related files? Should we also move these files out of html\canvas, say into
> html\ or html\typearrays?
> In addition, get() is not implemented for typed array views. Should we add
> it?
Both the setter and getter in the Web IDL are defined as omittable,
which means that in the ECMAScript binding the indexing operator "[]"
is used for both getting and setting values. Both are fully
implemented in JSC and V8. At the C++ level, the "item" and "set"
methods (see IntegralTypedArrayBase and Float32Array for example) are
used in certain cases to implement the getter and setter.
-Ken
> Jian
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
More information about the webkit-dev
mailing list