Changeset 145456 in webkit


Ignore:
Timestamp:
Mar 11, 2013, 6:25:33 PM (12 years ago)
Author:
cevans@google.com
Message:

Merge 144417
BUG=172342
Review URL: https://codereview.chromium.org/12543030

Location:
branches/chromium/1410/Source/WebCore/Modules/webaudio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/chromium/1410/Source/WebCore/Modules/webaudio/AudioNodeInput.cpp

    r117354 r145456  
    155155    for (HashSet<AudioNodeOutput*>::iterator i = m_outputs.begin(); i != m_outputs.end(); ++i) {
    156156        AudioNodeOutput* output = *i;
    157         maxChannels = max(maxChannels, output->bus()->numberOfChannels());
     157        // Use output()->numberOfChannels() instead of output->bus()->numberOfChannels(),
     158        // because the calling of AudioNodeOutput::bus() is not safe here.
     159        maxChannels = max(maxChannels, output->numberOfChannels());
    158160    }
    159161   
  • branches/chromium/1410/Source/WebCore/Modules/webaudio/AudioNodeOutput.cpp

    r118099 r145456  
    133133AudioBus* AudioNodeOutput::bus() const
    134134{
     135    // FIXME: Add ASSERTs/checkings to restrict the calling of bus(), because the calling is
     136    // only safe after setting the in-place bus in pull() and before updating the referred bus.
    135137    ASSERT(const_cast<AudioNodeOutput*>(this)->context()->isAudioThread());
    136138    ASSERT(m_actualDestinationBus);
Note: See TracChangeset for help on using the changeset viewer.