| Index: Source/modules/webaudio/OscillatorNode.cpp
|
| diff --git a/Source/modules/webaudio/OscillatorNode.cpp b/Source/modules/webaudio/OscillatorNode.cpp
|
| index 42df963dc221df31a1ee019b3fa9f83c750d8487..9b8a5b5993aa07b46feffc3d9bc344b9de30b894 100644
|
| --- a/Source/modules/webaudio/OscillatorNode.cpp
|
| +++ b/Source/modules/webaudio/OscillatorNode.cpp
|
| @@ -41,9 +41,9 @@ namespace blink {
|
|
|
| using namespace VectorMath;
|
|
|
| -PassRefPtrWillBeRawPtr<OscillatorNode> OscillatorNode::create(AudioContext* context, float sampleRate)
|
| +OscillatorNode* OscillatorNode::create(AudioContext* context, float sampleRate)
|
| {
|
| - return adoptRefWillBeNoop(new OscillatorNode(context, sampleRate));
|
| + return new OscillatorNode(context, sampleRate);
|
| }
|
|
|
| OscillatorNode::OscillatorNode(AudioContext* context, float sampleRate)
|
| @@ -120,22 +120,22 @@ bool OscillatorNode::setType(unsigned type)
|
|
|
| switch (type) {
|
| case SINE: {
|
| - DEFINE_STATIC_REF_WILL_BE_PERSISTENT(PeriodicWave, periodicWaveSine, (PeriodicWave::createSine(sampleRate)));
|
| + DEFINE_STATIC_LOCAL(Persistent<PeriodicWave>, periodicWaveSine, (PeriodicWave::createSine(sampleRate)));
|
| periodicWave = periodicWaveSine;
|
| break;
|
| }
|
| case SQUARE: {
|
| - DEFINE_STATIC_REF_WILL_BE_PERSISTENT(PeriodicWave, periodicWaveSquare, (PeriodicWave::createSquare(sampleRate)));
|
| + DEFINE_STATIC_LOCAL(Persistent<PeriodicWave>, periodicWaveSquare, (PeriodicWave::createSquare(sampleRate)));
|
| periodicWave = periodicWaveSquare;
|
| break;
|
| }
|
| case SAWTOOTH: {
|
| - DEFINE_STATIC_REF_WILL_BE_PERSISTENT(PeriodicWave, periodicWaveSawtooth, (PeriodicWave::createSawtooth(sampleRate)));
|
| + DEFINE_STATIC_LOCAL(Persistent<PeriodicWave>, periodicWaveSawtooth, (PeriodicWave::createSawtooth(sampleRate)));
|
| periodicWave = periodicWaveSawtooth;
|
| break;
|
| }
|
| case TRIANGLE: {
|
| - DEFINE_STATIC_REF_WILL_BE_PERSISTENT(PeriodicWave, periodicWaveTriangle, (PeriodicWave::createTriangle(sampleRate)));
|
| + DEFINE_STATIC_LOCAL(Persistent<PeriodicWave>, periodicWaveTriangle, (PeriodicWave::createTriangle(sampleRate)));
|
| periodicWave = periodicWaveTriangle;
|
| break;
|
| }
|
|
|