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

Issue 2485903002: Web MIDI: do not keep virtual synth open (Closed)

Created:
4 years, 1 month ago by Takashi Toyoshima
Modified:
4 years, 1 month ago
Reviewers:
yukawa
CC:
chromium-reviews, feature-media-reviews_chromium.org, toyoshim+midi_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Web MIDI: do not keep virtual synth open To release an internally allocated audio stream, close unsupported device handles as soon as possible. This is a short-term fix, and will have an essential fix later. TEST=powercfg/requests shows no audio stream after Web MIDI is called BUG=617086 Committed: https://crrev.com/491b24ffbe72a50d3af7846bf9207020fb09049e Cr-Commit-Position: refs/heads/master@{#431297}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : fix deadlock #

Total comments: 3

Patch Set 4 : plan b #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M media/midi/midi_manager_win.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 32 (23 generated)
Takashi Toyoshima
Can you take a look? This fix is not ideal, but handy to be merged ...
4 years, 1 month ago (2016-11-10 07:50:01 UTC) #15
Takashi Toyoshima
https://codereview.chromium.org/2485903002/diff/40001/media/midi/midi_manager_win.cc File media/midi/midi_manager_win.cc (right): https://codereview.chromium.org/2485903002/diff/40001/media/midi/midi_manager_win.cc#newcode831 media/midi/midi_manager_win.cc:831: bool unsupported = IsUnsupportedDevice(state_device_info); Note: I tried to close ...
4 years, 1 month ago (2016-11-10 08:12:27 UTC) #16
yukawa
lgtm https://codereview.chromium.org/2485903002/diff/40001/media/midi/midi_manager_win.cc File media/midi/midi_manager_win.cc (right): https://codereview.chromium.org/2485903002/diff/40001/media/midi/midi_manager_win.cc#newcode1080 media/midi/midi_manager_win.cc:1080: if (info.state == PortState::DISCONNECTED) { Fine as long ...
4 years, 1 month ago (2016-11-10 08:13:13 UTC) #17
Takashi Toyoshima
Now PortState is exposed to blink as a mojo enum, it is a little tough ...
4 years, 1 month ago (2016-11-10 09:42:33 UTC) #20
Takashi Toyoshima
sorry after the approval, but I noticed that there is a much simpler fix for ...
4 years, 1 month ago (2016-11-10 14:18:38 UTC) #21
yukawa
lgtm
4 years, 1 month ago (2016-11-10 16:13:25 UTC) #26
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/2485903002/60001
4 years, 1 month ago (2016-11-10 18:25:12 UTC) #28
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-10 18:30:54 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 18:38:58 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/491b24ffbe72a50d3af7846bf9207020fb09049e
Cr-Commit-Position: refs/heads/master@{#431297}

Powered by Google App Engine
This is Rietveld 408576698