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

Issue 24070002: Web MIDI: MIDIInput/MIDIOutput should not have reference to MIDIAccess (Closed)

Created:
7 years, 3 months ago by Takashi Toyoshima
Modified:
7 years, 3 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, adamk+blink_chromium.org, Nate Chapin, do-not-use
Visibility:
Public.

Description

Web MIDI: MIDIInput/MIDIOutput should not have reference to MIDIAccess Currently, MIDIOutput has a reference to MIDIAccess introducing a cyclic reference between them. To avoid this issue, this change adopts a simple idea to have a raw pointer to MIDIAccess from MIDIOutput and MIDIInput, and internally has a reference to MIDIAccess in the v8 bindings. This internal reference make MIDIAccess alive while MIDIOutput and MIDIInput live. So, MIDIOutput and MIDIInput can assume the raw pointer is always valid. Also the reference can be GCed in the v8 world. BUG=163795 TEST=LayoutTests/webmidi Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157517

Patch Set 1 #

Patch Set 2 : similarity=90 #

Patch Set 3 : cleanup #

Patch Set 4 : (rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -8 lines) Patch
M Source/bindings/bindings.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8MIDIInputCustom.cpp View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A Source/bindings/v8/custom/V8MIDIOutputCustom.cpp View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M Source/modules/webmidi/MIDIAccess.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/modules/webmidi/MIDIInput.h View 2 chunks +7 lines, -2 lines 0 comments Download
M Source/modules/webmidi/MIDIInput.cpp View 1 chunk +5 lines, -3 lines 0 comments Download
M Source/modules/webmidi/MIDIInput.idl View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webmidi/MIDIOutput.h View 1 chunk +3 lines, -1 line 0 comments Download
M Source/modules/webmidi/MIDIOutput.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/webmidi/MIDIOutput.idl View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Takashi Toyoshima
Hi Kouhei, This change will fix the cyclic reference problem you find in the review ...
7 years, 3 months ago (2013-09-09 07:53:17 UTC) #1
kouhei (in TOK)
lgtm. +haraken about introducing custom bindings.
7 years, 3 months ago (2013-09-09 08:09:13 UTC) #2
kouhei (in TOK)
On 2013/09/09 08:09:13, kouhei wrote: > lgtm. > +haraken about introducing custom bindings.
7 years, 3 months ago (2013-09-09 08:09:30 UTC) #3
haraken
On 2013/09/09 08:09:30, kouhei wrote: > On 2013/09/09 08:09:13, kouhei wrote: > > lgtm. > ...
7 years, 3 months ago (2013-09-09 08:19:17 UTC) #4
Takashi Toyoshima
That sounds awesome. I'll use it once SetHiddenRefenrenceTo attribute is ready to use. This is ...
7 years, 3 months ago (2013-09-09 10:26:35 UTC) #5
Takashi Toyoshima
Note that since MIDIInput.idl and MIDIOutput.idl are still compiled by deprecated perl IDL compiler, introducing ...
7 years, 3 months ago (2013-09-09 10:50:26 UTC) #6
haraken
Actually I'd want you to fix the code generator before adding the two custom bindings. ...
7 years, 3 months ago (2013-09-09 15:35:18 UTC) #7
kouhei (in TOK)
On 2013/09/09 15:35:18, haraken wrote: > Actually I'd want you to fix the code generator ...
7 years, 3 months ago (2013-09-09 23:47:15 UTC) #8
haraken
> OK, should I or nbarth take over that task? I'll start on that this ...
7 years, 3 months ago (2013-09-10 00:00:44 UTC) #9
haraken
Discussed offline with kouhei. We decided to solve the problem by introducing [ReachableFrom] and [ReachableTo]. ...
7 years, 3 months ago (2013-09-10 08:30:45 UTC) #10
Takashi Toyoshima
Thanks:)
7 years, 3 months ago (2013-09-10 08:49:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/24070002/7001
7 years, 3 months ago (2013-09-10 08:49:35 UTC) #12
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-10 09:45:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/24070002/26001
7 years, 3 months ago (2013-09-10 11:04:48 UTC) #14
commit-bot: I haz the power
7 years, 3 months ago (2013-09-10 11:53:25 UTC) #15
Message was sent while issue was closed.
Change committed as 157517

Powered by Google App Engine
This is Rietveld 408576698