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

Issue 208493002: Remove {,un}setPendingActivity from AudioContext. (Closed)

Created:
6 years, 9 months ago by kouhei (in TOK)
Modified:
6 years, 9 months ago
CC:
blink-reviews, Raymond Toy
Visibility:
Public.

Description

Remove {,un}setPendingActivity from AudioContext. This CL removes use of {,un}setPendingActivity from AudioContext. They were used to make the wrappers alive until Document is destroyed. This CL replaces the hack with a |hasPendingActivity()| impl. Also, this removes ASSERT(m_isStopScheduled) from d-tor. This is never set when OfflineAudioContext::create() fails after creating an instance. TEST=media/ BUG=354845 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170015

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix #

Total comments: 2

Patch Set 3 : fix #

Patch Set 4 : fix #

Total comments: 1

Patch Set 5 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -6 lines) Patch
M Source/modules/webaudio/AudioContext.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M Source/modules/webaudio/AudioContext.cpp View 1 2 3 4 6 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
kouhei (in TOK)
Would you take a look?
6 years, 9 months ago (2014-03-21 16:32:15 UTC) #1
kouhei (in TOK)
https://codereview.chromium.org/208493002/diff/1/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/208493002/diff/1/Source/modules/webaudio/AudioContext.cpp#newcode276 Source/modules/webaudio/AudioContext.cpp:276: return executionContext()->activeDOMObjectsAreStopped(); Sorry this must be the opposite!
6 years, 9 months ago (2014-03-21 16:32:40 UTC) #2
haraken
This CL will slightly change the timing when hasPendingActivity() returns true. Before this CL, we ...
6 years, 9 months ago (2014-03-21 16:42:20 UTC) #3
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 9 months ago (2014-03-21 16:44:09 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/208493002/30001
6 years, 9 months ago (2014-03-21 16:44:17 UTC) #5
kouhei (in TOK)
Thanks for review! https://codereview.chromium.org/208493002/diff/10001/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (right): https://codereview.chromium.org/208493002/diff/10001/Source/modules/webaudio/AudioContext.cpp#newcode275 Source/modules/webaudio/AudioContext.cpp:275: // According to spec AudioContext must ...
6 years, 9 months ago (2014-03-21 16:44:47 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-21 17:17:43 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 9 months ago (2014-03-21 17:17:43 UTC) #8
kouhei (in TOK)
PTAL. https://codereview.chromium.org/208493002/diff/50001/Source/modules/webaudio/AudioContext.cpp File Source/modules/webaudio/AudioContext.cpp (left): https://codereview.chromium.org/208493002/diff/50001/Source/modules/webaudio/AudioContext.cpp#oldcode174 Source/modules/webaudio/AudioContext.cpp:174: ASSERT(m_isStopScheduled); m_isStopScheduled is not set when OfflineAudioContext::create fails ...
6 years, 9 months ago (2014-03-26 01:21:33 UTC) #9
kouhei (in TOK)
sorry. looks like still having rare crashes. please wait.
6 years, 9 months ago (2014-03-26 01:21:57 UTC) #10
kouhei (in TOK)
trybots passing. PTAL.
6 years, 9 months ago (2014-03-26 03:01:10 UTC) #11
haraken
LGTM
6 years, 9 months ago (2014-03-26 03:40:06 UTC) #12
kouhei (in TOK)
The CQ bit was checked by kouhei@chromium.org
6 years, 9 months ago (2014-03-26 04:33:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kouhei@chromium.org/208493002/90001
6 years, 9 months ago (2014-03-26 04:33:41 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 04:54:49 UTC) #15
Message was sent while issue was closed.
Change committed as 170015

Powered by Google App Engine
This is Rietveld 408576698