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

Issue 416333002: Introduce AudioSourceProviderClientLockScope. (Closed)

Created:
6 years, 5 months ago by tkent
Modified:
6 years, 4 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, philipj_slow, gasubic, fs, eric.carlson_apple.com, Raymond Toy, feature-media-reviews_chromium.org, dglazkov+blink, nessy, vcarbune.chromium
Project:
blink
Visibility:
Public.

Description

Introduce AudioSourceProviderClientLockScope. It makes lock/unlock of AudioSourceProviderClient easier. This class holds a strong reference to AudioSourceProviderClient. So we don't need MediaElementAudioSourceNode::m_keepAliveWhileLocking. BUG=395940 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178999

Patch Set 1 #

Patch Set 2 : Use AudioSourceProviderClientLockScope even if !ENABLE(WEB_AUDIO) #

Total comments: 4

Patch Set 3 : RefPtrWillBeMember #

Patch Set 4 : Patch Set 2 + explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -31 lines) Patch
M Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 chunks +32 lines, -26 lines 0 comments Download
M Source/modules/webaudio/MediaElementAudioSourceNode.h View 3 1 chunk +0 lines, -3 lines 0 comments Download
M Source/modules/webaudio/MediaElementAudioSourceNode.cpp View 3 1 chunk +6 lines, -2 lines 0 comments Download
M Source/platform/audio/AudioSourceProviderClient.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
tkent
Please review this.
6 years, 5 months ago (2014-07-25 09:05:51 UTC) #1
haraken
https://codereview.chromium.org/416333002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/416333002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode175 Source/core/html/HTMLMediaElement.cpp:175: AudioSourceProviderClientLockScope(HTMLMediaElement& element) Add explicit. https://codereview.chromium.org/416333002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode188 Source/core/html/HTMLMediaElement.cpp:188: RawPtrWillBeMember<AudioSourceProviderClient> m_client; I ...
6 years, 5 months ago (2014-07-26 04:11:37 UTC) #2
tkent
https://codereview.chromium.org/416333002/diff/20001/Source/core/html/HTMLMediaElement.cpp File Source/core/html/HTMLMediaElement.cpp (right): https://codereview.chromium.org/416333002/diff/20001/Source/core/html/HTMLMediaElement.cpp#newcode175 Source/core/html/HTMLMediaElement.cpp:175: AudioSourceProviderClientLockScope(HTMLMediaElement& element) On 2014/07/26 04:11:37, haraken wrote: > > ...
6 years, 4 months ago (2014-07-28 01:20:55 UTC) #3
haraken
LGTM > > I wonder if we can just use RefPtrWillBeMember<AudioSourceProviderClient> here > > and ...
6 years, 4 months ago (2014-07-28 01:28:43 UTC) #4
tkent
I'll land Patch Set 2 + explicit fix.
6 years, 4 months ago (2014-07-28 01:38:35 UTC) #5
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 4 months ago (2014-07-28 01:38:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/416333002/60001
6 years, 4 months ago (2014-07-28 01:38:54 UTC) #7
commit-bot: I haz the power
6 years, 4 months ago (2014-07-28 02:41:35 UTC) #8
Message was sent while issue was closed.
Change committed as 178999

Powered by Google App Engine
This is Rietveld 408576698