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

Issue 8502030: Draft of a PPAPI interface for ArrayBuffer and typed arrays. (Closed)

Created:
9 years, 1 month ago by dmichael (off chromium)
Modified:
9 years ago
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Draft of a PPAPI interface for ArrayBuffer. See the TypedArray spec for reference: http://www.khronos.org/registry/typedarray/specs/latest/ Things in the spec that I'm omiting: - slice (Having a view of the ArrayBuffer that has a different offset/length) TODO in future CLs: -Implementation for in-process/trusted + tests (almost ready) -NaCl proxy -OOP proxy Later still: - Support for ArrayBufferView and TypedArray based on that. BUG=103435 TEST=N/A Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113355

Patch Set 1 #

Patch Set 2 : Oops, remove Resize #

Total comments: 3

Patch Set 3 : Fix suffix for ppb_arraybuffer.* #

Patch Set 4 : Initial implementation. Took Darin's comments in to account for the interface. #

Patch Set 5 : First version that appears to basically work. #

Patch Set 6 : Cut back down to just the API for review. #

Total comments: 3

Patch Set 7 : Remove instance param. Add Var ArrayBuffer type. #

Patch Set 8 : Merged. #

Patch Set 9 : Documentation tweak. #

Total comments: 1

Patch Set 10 : Update NaCl proxy switch statements. #

Patch Set 11 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -8 lines) Patch
A ppapi/api/dev/ppb_var_array_buffer_dev.idl View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
M ppapi/api/pp_var.idl View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -1 line 0 comments Download
A ppapi/c/dev/ppb_var_array_buffer_dev.h View 1 2 3 4 5 6 1 chunk +67 lines, -0 lines 0 comments Download
M ppapi/c/pp_var.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -2 lines 0 comments Download
A ppapi/cpp/dev/var_array_buffer_dev.h View 1 2 3 4 5 6 1 chunk +57 lines, -0 lines 0 comments Download
A ppapi/cpp/dev/var_array_buffer_dev.cc View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
M ppapi/cpp/var.h View 1 2 3 6 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/object_serialize.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 7 8 9 10 3 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/serialized_var.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/message_channel.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/npapi_glue.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
darin (slow to review)
http://codereview.chromium.org/8502030/diff/2001/ppapi/api/dev/ppb_arraybuffer.idl File ppapi/api/dev/ppb_arraybuffer.idl (right): http://codereview.chromium.org/8502030/diff/2001/ppapi/api/dev/ppb_arraybuffer.idl#newcode12 ppapi/api/dev/ppb_arraybuffer.idl:12: }; i guess this file should have the _dev ...
9 years, 1 month ago (2011-11-08 22:16:18 UTC) #1
dmichael (off chromium)
http://codereview.chromium.org/8502030/diff/2001/ppapi/api/pp_var.idl File ppapi/api/pp_var.idl (right): http://codereview.chromium.org/8502030/diff/2001/ppapi/api/pp_var.idl#newcode72 ppapi/api/pp_var.idl:72: PP_VARTYPE_ARRAY_BUFFER PPB_Buffer is a PP_Resource, whereas I really want ...
9 years, 1 month ago (2011-11-08 22:32:20 UTC) #2
Takashi Toyoshima
Hi, I try this change, but all ui tests related to ArrayBuffer failed. I guess ...
9 years ago (2011-12-02 07:34:54 UTC) #3
Takashi Toyoshima
I successfully implement WebSocket binding using this change as follows. I'll request review after this ...
9 years ago (2011-12-02 13:31:14 UTC) #4
dmichael (off chromium)
I decided to take the implementation stuff back out of this CL and handle that ...
9 years ago (2011-12-02 18:53:52 UTC) #5
dmichael (off chromium)
Talked to brettw offline; the instance parameter won't be necessary. It could be used protect ...
9 years ago (2011-12-02 23:46:46 UTC) #6
brettw
http://codereview.chromium.org/8502030/diff/20001/ppapi/api/pp_var.idl File ppapi/api/pp_var.idl (right): http://codereview.chromium.org/8502030/diff/20001/ppapi/api/pp_var.idl#newcode73 ppapi/api/pp_var.idl:73: PP_VARTYPE_ARRAY_BUFFER = 9 I don't understand how this is ...
9 years ago (2011-12-03 00:00:49 UTC) #7
dmichael (off chromium)
I was planning to have Array map to a conventional js array which can contain ...
9 years ago (2011-12-03 00:19:36 UTC) #8
dmichael (off chromium)
Expanding a bit, I expected normal PPB_VarArray to have some kind of get/set that takes ...
9 years ago (2011-12-03 01:25:22 UTC) #9
brettw
On Fri, Dec 2, 2011 at 4:19 PM, David Michael <dmichael@chromium.org> wrote: > I was ...
9 years ago (2011-12-03 01:42:49 UTC) #10
dmichael (off chromium)
On 2011/12/03 01:42:49, brettw wrote: > On Fri, Dec 2, 2011 at 4:19 PM, David ...
9 years ago (2011-12-03 03:07:06 UTC) #11
brettw
lgtm
9 years ago (2011-12-05 21:29:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/8502030/25001
9 years ago (2011-12-06 21:22:10 UTC) #13
commit-bot: I haz the power
Try job failure for 8502030-25001 (retry) on linux_clang for step "compile" (clobber build). It's a ...
9 years ago (2011-12-06 22:04:22 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/8502030/25001
9 years ago (2011-12-07 04:32:50 UTC) #15
commit-bot: I haz the power
9 years ago (2011-12-07 06:49:03 UTC) #16
Change committed as 113355

Powered by Google App Engine
This is Rietveld 408576698