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

Issue 2815793002: [SharedArrayBuffer] Add "AllowShared" extended attribute, used for WebGL (Closed)

Created:
3 years, 8 months ago by binji
Modified:
3 years, 8 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, haraken, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[SharedArrayBuffer] Add "AllowShared" extended attribute, used for WebGL The [AllowShared] extended attribute can be applied to a method's ArrayBufferView parameter to indicate that the view can be backed by a SharedArrayBuffer. For example: interface Context { void bufferData1([AllowShared] ArrayBufferView param); void bufferData2([AllowShared] Uint8Array param); } By default, ArrayBufferView parameters can not be a view of a SharedArrayBuffer, and will throw an exception in that case. BUG=569681 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2815793002 Cr-Commit-Position: refs/heads/master@{#465787} Committed: https://chromium.googlesource.com/chromium/src/+/ed24fe201ef7afca59b9562443cdbce3b1ce8142

Patch Set 1 #

Total comments: 1

Patch Set 2 : address feedback #

Patch Set 3 : add layout tests #

Total comments: 4

Patch Set 4 : merge HEAD #

Patch Set 5 : merge HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -299 lines) Patch
A third_party/WebKit/LayoutTests/fast/canvas/webgl/webgl-sharedarraybuffer.html View 1 2 1 chunk +193 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.md View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ToV8.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ToV8ForCore.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8Binding.h View 1 2 3 4 2 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/scripts/v8_types.py View 1 5 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferViewOrDictionary.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/StringOrArrayBufferOrArrayBufferView.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestDictionary.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/TestInterface2OrUint8Array.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8DataView.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 3 4 4 chunks +57 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8Uint8ClampedArray.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h View 1 2 3 3 chunks +60 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMArrayBufferView.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DOMTypedArray.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
D third_party/WebKit/Source/core/dom/NotShared.h View 1 1 chunk +0 lines, -68 lines 0 comments Download
M third_party/WebKit/Source/core/geometry/DOMMatrix.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/geometry/DOMMatrixReadOnly.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/ImageData.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/BaseRenderingContext2D.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/encoding/TextEncoder.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediasource/SourceBuffer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnection.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AnalyserNode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioBuffer.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioParam.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadFilterNode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/IIRFilterNode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/PeriodicWave.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.h View 1 2 3 4 29 chunks +36 lines, -36 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp View 1 2 3 4 50 chunks +80 lines, -72 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.idl View 1 2 3 4 6 chunks +27 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLGetBufferSubDataAsync.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h View 1 2 3 4 9 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 19 chunks +28 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.idl View 1 2 3 4 6 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIOutput.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocket.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferView.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/wtf/typed_arrays/TypedArrayBase.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (27 generated)
binji
3 years, 8 months ago (2017-04-12 01:11:30 UTC) #3
binji
On 2017/04/12 at 01:11:30, binji wrote: > PTAL, I think this is relatively straightforward given ...
3 years, 8 months ago (2017-04-12 01:12:13 UTC) #4
haraken
Mostly looks good. - Can we add an error message to the IDL compiler when ...
3 years, 8 months ago (2017-04-12 04:37:13 UTC) #9
binji
On 2017/04/12 at 04:37:13, haraken wrote: > - This CL will need an approval of ...
3 years, 8 months ago (2017-04-12 21:15:58 UTC) #11
Ken Russell (switch to Gerrit)
I'd like to please defer review to zmo@, with kainino@ as a backup -- too ...
3 years, 8 months ago (2017-04-12 23:33:52 UTC) #13
Kai Ninomiya
On 2017/04/12 23:33:52, Ken Russell wrote: > I'd like to please defer review to zmo@, ...
3 years, 8 months ago (2017-04-12 23:50:50 UTC) #14
Ken Russell (switch to Gerrit)
lgtm based on Kai's review.
3 years, 8 months ago (2017-04-13 01:59:47 UTC) #15
binji
PTAL, I added a WebGL layout test, which made me realize that I had to ...
3 years, 8 months ago (2017-04-13 04:30:30 UTC) #16
haraken
LGTM (Please get an approval from an API owner.) https://codereview.chromium.org/2815793002/diff/40001/third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h File third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h (right): https://codereview.chromium.org/2815793002/diff/40001/third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h#newcode17 third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h:17: ...
3 years, 8 months ago (2017-04-13 04:51:13 UTC) #21
Ken Russell (switch to Gerrit)
Good work on the layout test. I should have pushed for that earlier. It looks ...
3 years, 8 months ago (2017-04-13 05:10:23 UTC) #22
binji
https://codereview.chromium.org/2815793002/diff/40001/third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h File third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h (right): https://codereview.chromium.org/2815793002/diff/40001/third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h#newcode17 third_party/WebKit/Source/core/dom/ArrayBufferViewHelpers.h:17: // A wrapper template type that is used to ...
3 years, 8 months ago (2017-04-13 18:42:00 UTC) #25
binji
+zmo PTAL
3 years, 8 months ago (2017-04-17 17:30:44 UTC) #28
Zhenyao Mo
lgtm
3 years, 8 months ago (2017-04-17 17:35:45 UTC) #29
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/2815793002/60001
3 years, 8 months ago (2017-04-17 17:44:38 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/412840)
3 years, 8 months ago (2017-04-17 17:47:13 UTC) #34
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/2815793002/80001
3 years, 8 months ago (2017-04-19 20:42:05 UTC) #41
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 22:35:13 UTC) #44
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ed24fe201ef7afca59b9562443cd...

Powered by Google App Engine
This is Rietveld 408576698