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

Issue 460303003: Merge m_didCallDispose and m_isMarkedForDeletion flags into one flag (Closed)

Created:
6 years, 4 months ago by haraken
Modified:
6 years, 4 months ago
Reviewers:
oilpan-reviews, tkent
CC:
blink-reviews, Raymond Toy
Project:
blink
Visibility:
Public.

Description

Merge m_didCallDispose and m_isMarkedForDeletion flags into one flag Currently we have the following two flags: - m_didCallDispose is used to know whether AudioContext::dispose() is called or not. - m_isMarkedForDeletion is used to guarantee the following facts: --- AudioNode should not be re-registered to AudioNode::m_outputs after AudioNode::dispose is called. --- AudioNode should not get marked as dirty after AudoNode::dispose is called. We don't need the two flags; just one flag that is set in AudioContext::dispose() is enough. This CL removes m_didCallDispose and m_isMarkedForDeletion and introduces m_isDisposeCalled. This CL doesn't change any behavior. BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180330

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -37 lines) Patch
M Source/modules/webaudio/AudioNode.h View 2 chunks +2 lines, -10 lines 0 comments Download
M Source/modules/webaudio/AudioNode.cpp View 1 4 chunks +10 lines, -12 lines 0 comments Download
M Source/modules/webaudio/AudioNodeInput.h View 1 chunk +1 line, -3 lines 0 comments Download
M Source/modules/webaudio/AudioParam.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioSummingJunction.h View 1 chunk +0 lines, -2 lines 0 comments Download
M Source/modules/webaudio/AudioSummingJunction.cpp View 2 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
haraken
PTAL https://codereview.chromium.org/460303003/diff/1/Source/modules/webaudio/AudioNode.cpp File Source/modules/webaudio/AudioNode.cpp (right): https://codereview.chromium.org/460303003/diff/1/Source/modules/webaudio/AudioNode.cpp#newcode112 Source/modules/webaudio/AudioNode.cpp:112: #if ENABLE(OILPAN) Note: This CL depends on https://codereview.chromium.org/467683002/. ...
6 years, 4 months ago (2014-08-12 14:29:52 UTC) #1
haraken
tkent-san: The dependency CL was landed. Would you take a look at this?
6 years, 4 months ago (2014-08-14 16:09:28 UTC) #2
tkent
> - AudioNode should not be re-registered to AudioNode::m_outputs after AudioNode::dispose is called. > - ...
6 years, 4 months ago (2014-08-14 23:24:19 UTC) #3
tkent
https://codereview.chromium.org/460303003/diff/1/Source/modules/webaudio/AudioNode.cpp File Source/modules/webaudio/AudioNode.cpp (right): https://codereview.chromium.org/460303003/diff/1/Source/modules/webaudio/AudioNode.cpp#newcode108 Source/modules/webaudio/AudioNode.cpp:108: // - the following disconnectAll() from re-registering this AudioNode ...
6 years, 4 months ago (2014-08-14 23:25:01 UTC) #4
haraken
> Please add C++ unit tests for them. This CL fixes leaks in webaudio/panner-loop.html in ...
6 years, 4 months ago (2014-08-15 01:27:18 UTC) #5
tkent
On 2014/08/15 01:27:18, haraken wrote: > This CL fixes leaks in webaudio/panner-loop.html in oilpan builds. ...
6 years, 4 months ago (2014-08-15 02:25:34 UTC) #6
haraken
On 2014/08/15 02:25:34, tkent wrote: > On 2014/08/15 01:27:18, haraken wrote: > > This CL ...
6 years, 4 months ago (2014-08-15 05:11:05 UTC) #7
haraken
I realized that this CL just merges two flags (m_didCallDispose and m_isMarkedForDeletion) into one flag ...
6 years, 4 months ago (2014-08-15 05:33:56 UTC) #8
tkent
On 2014/08/15 05:33:56, haraken wrote: > I realized that this CL just merges two flags ...
6 years, 4 months ago (2014-08-15 05:50:55 UTC) #9
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 4 months ago (2014-08-15 06:00:53 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/460303003/20001
6 years, 4 months ago (2014-08-15 06:01:31 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 06:26:03 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (20001) as 180330

Powered by Google App Engine
This is Rietveld 408576698