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

Issue 2720873002: Implements JS bindings for mojo shared buffer. (Closed)

Created:
3 years, 9 months ago by alokp
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implements JS bindings for mojo shared buffer. BUG=647036 Review-Url: https://codereview.chromium.org/2720873002 Cr-Commit-Position: refs/heads/master@{#454503} Committed: https://chromium.googlesource.com/chromium/src/+/b07ce7263e703b1eddda72bf6c233710809ecf6b

Patch Set 1 #

Total comments: 11

Patch Set 2 : renames MojoSharedBuffer to MojoSharedBufferMapping #

Patch Set 3 : unmap upon destruction #

Patch Set 4 : uses externalized array buffer #

Patch Set 5 : adds layout tests #

Total comments: 16

Patch Set 6 : added more checks in tests #

Patch Set 7 : makes JS API same as C API #

Total comments: 2

Patch Set 8 : removes MojoDuplicateBufferHandleOptionsFlags #

Patch Set 9 : rebase #

Patch Set 10 : rebaseline layouttests #

Patch Set 11 : rebaseline2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -0 lines) Patch
A third_party/WebKit/LayoutTests/mojo/shared-buffer.html View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/core_idl_files.gni View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/Mojo.h View 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/Mojo.cpp View 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/Mojo.idl View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoCreateSharedBufferResult.idl View 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoDuplicateBufferHandleOptions.idl View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/MojoHandle.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/MojoHandle.cpp View 1 2 3 4 5 6 7 2 chunks +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/mojo/MojoHandle.idl View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/mojo/MojoMapBufferResult.idl View 1 2 3 4 5 6 7 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
alokp
This is a WIP. I ran into a few issues while implementing bindings for shared ...
3 years, 9 months ago (2017-02-27 19:50:45 UTC) #2
jbroman
https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp File third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp (right): https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp#newcode14 third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp:14: // TODO(alokp): We need to create an ArrayBuffer that ...
3 years, 9 months ago (2017-02-27 20:14:44 UTC) #3
alokp
Thanks for the quick response! https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp File third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp (right): https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp#newcode14 third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp:14: // TODO(alokp): We need ...
3 years, 9 months ago (2017-02-27 20:30:35 UTC) #4
yzshen1
https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoHandle.cpp File third_party/WebKit/Source/core/mojo/MojoHandle.cpp (right): https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoHandle.cpp#newcode105 third_party/WebKit/Source/core/mojo/MojoHandle.cpp:105: // TODO(alokp): Check if we need to track all ...
3 years, 9 months ago (2017-02-27 21:05:27 UTC) #5
alokp
https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp File third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp (right): https://codereview.chromium.org/2720873002/diff/1/third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp#newcode14 third_party/WebKit/Source/core/mojo/MojoSharedBuffer.cpp:14: // TODO(alokp): We need to create an ArrayBuffer that ...
3 years, 9 months ago (2017-02-28 00:22:15 UTC) #6
alokp
This is ready for review. PTAL.
3 years, 9 months ago (2017-03-01 19:43:49 UTC) #8
yzshen1
https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html File third_party/WebKit/LayoutTests/mojo/shared-buffer.html (right): https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html#newcode24 third_party/WebKit/LayoutTests/mojo/shared-buffer.html:24: let {result, handle: handle1} = handle0.clone(); Clone is not ...
3 years, 9 months ago (2017-03-01 23:11:47 UTC) #12
jbroman
https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html File third_party/WebKit/LayoutTests/mojo/shared-buffer.html (right): https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html#newcode42 third_party/WebKit/LayoutTests/mojo/shared-buffer.html:42: let {buffer: buffer1} = handle1.mapBuffer(0, kBufferSize); nit: Consider verifying ...
3 years, 9 months ago (2017-03-01 23:29:37 UTC) #13
yzshen1
https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/Source/core/mojo/MojoCloneBufferHandleFlags.idl File third_party/WebKit/Source/core/mojo/MojoCloneBufferHandleFlags.idl (right): https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/Source/core/mojo/MojoCloneBufferHandleFlags.idl#newcode6 third_party/WebKit/Source/core/mojo/MojoCloneBufferHandleFlags.idl:6: boolean readOnly = false; On 2017/03/01 23:29:37, jbroman wrote: ...
3 years, 9 months ago (2017-03-01 23:33:08 UTC) #14
alokp
https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html File third_party/WebKit/LayoutTests/mojo/shared-buffer.html (right): https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html#newcode24 third_party/WebKit/LayoutTests/mojo/shared-buffer.html:24: let {result, handle: handle1} = handle0.clone(); On 2017/03/01 23:11:46, ...
3 years, 9 months ago (2017-03-01 23:58:35 UTC) #15
yzshen1
https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html File third_party/WebKit/LayoutTests/mojo/shared-buffer.html (right): https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html#newcode24 third_party/WebKit/LayoutTests/mojo/shared-buffer.html:24: let {result, handle: handle1} = handle0.clone(); On 2017/03/01 23:58:34, ...
3 years, 9 months ago (2017-03-02 17:41:08 UTC) #17
Ken Rockot(use gerrit already)
On 2017/03/02 at 17:41:08, yzshen wrote: > https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html > File third_party/WebKit/LayoutTests/mojo/shared-buffer.html (right): > > https://codereview.chromium.org/2720873002/diff/80001/third_party/WebKit/LayoutTests/mojo/shared-buffer.html#newcode24 ...
3 years, 9 months ago (2017-03-02 18:03:15 UTC) #18
alokp
The new patch makes the JS API consistent with C API. Is everyone OK with ...
3 years, 9 months ago (2017-03-02 18:55:32 UTC) #19
jbroman
lgtm I guess I'm okay with adding an unmap later, if you'd really prefer that. ...
3 years, 9 months ago (2017-03-02 20:50:47 UTC) #20
yzshen1
LGTM
3 years, 9 months ago (2017-03-02 20:55:34 UTC) #21
alokp
Jeremy: Thanks for the ImageBitmap reference. I did not know about that. I have added ...
3 years, 9 months ago (2017-03-02 21:22:47 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2720873002/200001
3 years, 9 months ago (2017-03-02 23:48:25 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/376258)
3 years, 9 months ago (2017-03-03 01:25:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2720873002/200001
3 years, 9 months ago (2017-03-03 01:36:07 UTC) #29
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 03:29:08 UTC) #32
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/b07ce7263e703b1eddda72bf6c23...

Powered by Google App Engine
This is Rietveld 408576698