Changeset 202645 in webkit


Ignore:
Timestamp:
Jun 29, 2016 1:17:44 PM (8 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r202617.

The LayoutTest from this change crashes under GuardMalloc

Reverted changeset:

"Throw exceptions for invalid number of channels for
ConvolverNode"
https://bugs.webkit.org/show_bug.cgi?id=159238
http://trac.webkit.org/changeset/202617

Location:
trunk
Files:
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r202641 r202645  
     12016-06-29  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r202617.
     4
     5        The LayoutTest from this change crashes under GuardMalloc
     6
     7        Reverted changeset:
     8
     9        "Throw exceptions for invalid number of channels for
     10        ConvolverNode"
     11        https://bugs.webkit.org/show_bug.cgi?id=159238
     12        http://trac.webkit.org/changeset/202617
     13
    1142016-06-29  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r202644 r202645  
     12016-06-29  Ryan Haddad  <ryanhaddad@apple.com>
     2
     3        Unreviewed, rolling out r202617.
     4
     5        The LayoutTest from this change crashes under GuardMalloc
     6
     7        Reverted changeset:
     8
     9        "Throw exceptions for invalid number of channels for
     10        ConvolverNode"
     11        https://bugs.webkit.org/show_bug.cgi?id=159238
     12        http://trac.webkit.org/changeset/202617
     13
    1142016-06-29  Anders Carlsson  <andersca@apple.com>
    215
  • trunk/Source/WebCore/Modules/webaudio/ConvolverNode.cpp

    r202617 r202645  
    11/*
    22 * Copyright (C) 2010, Google Inc. All rights reserved.
    3  * Copyright (C) 2016, Apple Inc. All rights reserved.
    43 *
    54 * Redistribution and use in source and binary forms, with or without
     
    133132    size_t bufferLength = buffer->length();
    134133
    135     // The current implementation supports only 1-, 2-, or 4-channel impulse responses, with the
    136     // 4-channel response being interpreted as true-stereo (see Reverb class).
    137     bool isChannelCountGood = numberOfChannels == 1 || numberOfChannels == 2 || numberOfChannels == 4;
    138 
    139     if (!isChannelCountGood) {
    140         ec = NOT_SUPPORTED_ERR;
     134    // The current implementation supports up to four channel impulse responses, which are interpreted as true-stereo (see Reverb class).
     135    bool isBufferGood = numberOfChannels > 0 && numberOfChannels <= 4 && bufferLength;
     136    ASSERT(isBufferGood);
     137    if (!isBufferGood)
    141138        return;
    142     }
    143139
    144140    // Wrap the AudioBuffer by an AudioBus. It's an efficient pointer set and not a memcpy().
Note: See TracChangeset for help on using the changeset viewer.