• haraken@chromium.org's avatar
    Merge m_didCallDispose and m_isMarkedForDeletion flags into one flag · f5c034d5
    haraken@chromium.org authored
    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
    
    Review URL: https://codereview.chromium.org/460303003
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@180330 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    f5c034d5
AudioNodeInput.h 4.6 KB