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

Issue 1079983002: Introduce SmallTypedArray IDL type and use it for bufferSubData (Closed)

Created:
5 years, 8 months ago by jochen (gone - plz use gerrit)
Modified:
5 years, 8 months ago
CC:
aandrey+blink_chromium.org, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-html_chromium.org, Rik, Inactive, dglazkov+blink, dshwang, Justin Novosad, vivekg_samsung, vivekg
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Introduce SmallTypedArray IDL type and use it for bufferSubData This IDL type can be used instead of an ArrayBufferView if the ArrayBufferView is small (i.e. it doesn't have a materialized buffer). To work properly, the IDL should declare the same method with an ArrayBufferView as argument. Currently, we'll copy the contents to an alloca'd array. Ideally, we'd pass in the v8::ArrayBufferView, so the underlying implementation can copy the bytes to the target buffer. BUG=v8:3996 R=kbr@chromium.org,dslomov@chromium.org,haraken@chromium.org

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -7 lines) Patch
M Source/bindings/scripts/v8_interface.py View 1 chunk +8 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_methods.py View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 4 chunks +4 lines, -0 lines 2 comments Download
M Source/bindings/templates/methods.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/tests/results/core/V8TestObject.cpp View 2 chunks +41 lines, -4 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.cpp View 1 chunk +9 lines, -0 lines 0 comments Download
M Source/core/html/canvas/WebGLRenderingContextBase.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (1 generated)
jochen (gone - plz use gerrit)
5 years, 8 months ago (2015-04-13 11:04:49 UTC) #1
jochen (gone - plz use gerrit)
ptal depends on https://codereview.chromium.org/1084513002
5 years, 8 months ago (2015-04-13 11:05:28 UTC) #2
Dmitry Lomov (no reviews)
looking good overall, my main comment is to change SmallTypedArray to SmallArrayBufferView.
5 years, 8 months ago (2015-04-13 11:10:42 UTC) #3
haraken
Another idea would be to create a new IDL extended attribute like [SharedArrayBufferView], since we ...
5 years, 8 months ago (2015-04-13 11:13:11 UTC) #4
jochen (gone - plz use gerrit)
On 2015/04/13 at 11:13:11, haraken wrote: > Another idea would be to create a new ...
5 years, 8 months ago (2015-04-13 11:46:41 UTC) #5
Jens Widell
On 2015/04/13 11:46:41, jochen wrote: > On 2015/04/13 at 11:13:11, haraken wrote: > > Another ...
5 years, 8 months ago (2015-04-13 12:02:38 UTC) #6
jochen (gone - plz use gerrit)
On 2015/04/13 at 12:02:38, jl wrote: > On 2015/04/13 11:46:41, jochen wrote: > > On ...
5 years, 8 months ago (2015-04-13 12:08:22 UTC) #7
Jens Widell
On 2015/04/13 12:08:22, jochen wrote: > On 2015/04/13 at 12:02:38, jl wrote: > > But ...
5 years, 8 months ago (2015-04-13 13:01:55 UTC) #8
Ken Russell (switch to Gerrit)
Jochen, thank you for putting this together. On 2015/04/13 13:01:55, Jens Widell wrote: > On ...
5 years, 8 months ago (2015-04-14 01:40:19 UTC) #9
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/1079983002/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/1079983002/diff/20001/Source/bindings/scripts/v8_types.py#newcode497 Source/bindings/scripts/v8_types.py:497: 'SmallTypedArray': '{v8_value}->IsArrayBufferView() ? {variable_name} = std::make_pair(alloca(v8::ArrayBufferView::Cast(*{v8_value})->ByteLength()), v8::ArrayBufferView::Cast(*{v8_value})->ByteLength()), v8::ArrayBufferView::Cast(*{v8_value})->CopyContents({variable_name}.first, {variable_name}.second), ...
5 years, 8 months ago (2015-04-14 01:40:26 UTC) #10
Jens Widell
https://codereview.chromium.org/1079983002/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/1079983002/diff/20001/Source/bindings/scripts/v8_types.py#newcode497 Source/bindings/scripts/v8_types.py:497: 'SmallTypedArray': '{v8_value}->IsArrayBufferView() ? {variable_name} = std::make_pair(alloca(v8::ArrayBufferView::Cast(*{v8_value})->ByteLength()), v8::ArrayBufferView::Cast(*{v8_value})->ByteLength()), v8::ArrayBufferView::Cast(*{v8_value})->CopyContents({variable_name}.first, {variable_name}.second), ...
5 years, 8 months ago (2015-04-14 09:18:18 UTC) #12
jochen (gone - plz use gerrit)
On 2015/04/14 at 09:18:18, jl wrote: > https://codereview.chromium.org/1079983002/diff/20001/Source/bindings/scripts/v8_types.py > File Source/bindings/scripts/v8_types.py (right): > > https://codereview.chromium.org/1079983002/diff/20001/Source/bindings/scripts/v8_types.py#newcode497 ...
5 years, 8 months ago (2015-04-14 13:35:05 UTC) #13
Jens Widell
On 2015/04/14 13:35:05, jochen wrote: > On 2015/04/14 at 09:18:18, jl wrote: > > > ...
5 years, 8 months ago (2015-04-14 13:50:59 UTC) #14
jochen (gone - plz use gerrit)
On 2015/04/14 at 13:50:59, jl wrote: > On 2015/04/14 13:35:05, jochen wrote: > > On ...
5 years, 8 months ago (2015-04-14 15:22:12 UTC) #15
Ken Russell (switch to Gerrit)
On 2015/04/14 15:22:12, jochen wrote: > On 2015/04/14 at 13:50:59, jl wrote: > > On ...
5 years, 8 months ago (2015-04-15 00:45:06 UTC) #16
jochen (gone - plz use gerrit)
5 years, 8 months ago (2015-04-15 13:26:07 UTC) #17
closing this CL

Powered by Google App Engine
This is Rietveld 408576698