Changeset 146040 in webkit
- Timestamp:
- Mar 18, 2013 1:33:30 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r146039 r146040 1 2013-03-18 Kentaro Hara <haraken@chromium.org> 2 3 Unreviewed, rolling out r146033. 4 http://trac.webkit.org/changeset/146033 5 https://bugs.webkit.org/show_bug.cgi?id=112521 6 7 web audio tests are broken 8 9 * webaudio/javascriptaudionode-expected.txt: 10 * webaudio/javascriptaudionode.html: 11 1 12 2013-03-18 Anton Muhin <antonm@chromium.org> 2 13 -
trunk/LayoutTests/webaudio/javascriptaudionode-expected.txt
r146033 r146040 17 17 PASS Successfully created ScriptProcessorNode with bufferSize = 16384. 18 18 PASS onaudioprocess was called with correct data. 19 PASS audioprocessWasCalled is true20 19 PASS successfullyParsed is true 21 20 -
trunk/LayoutTests/webaudio/javascriptaudionode.html
r146033 r146040 76 76 } 77 77 78 function performGCTest() {79 // now test that ScriptProcessorNodes are not garbage collected80 // if they are unreachable but connected to a running audio context.81 var context = new webkitOfflineAudioContext(2, renderLengthInFrames, sampleRate);82 83 window.audioprocessWasCalled = false;84 85 context.oncomplete = function () {86 shouldBeTrue('audioprocessWasCalled');87 finishJSTest();88 };89 90 // add the scriptprocessor and callback in a nested function to be sure they'll91 // be unreachable.92 (function() {93 var jsnode = context.createScriptProcessor(bufferSize, 0, 1);94 jsnode.onaudioprocess = function() {95 audioprocessWasCalled = true;96 };97 jsnode.connect(context.destination);98 })();99 gc();100 context.startRendering();101 }102 103 78 function runTest() { 104 79 if (window.testRunner) { … … 174 149 175 150 bufferSource.noteOn(0); 176 context.oncomplete = performGCTest;151 context.oncomplete = finishJSTest; 177 152 context.startRendering(); 178 179 153 } 180 154 -
trunk/Source/WebCore/ChangeLog
r146038 r146040 1 2013-03-18 Kentaro Hara <haraken@chromium.org> 2 3 Unreviewed, rolling out r146033. 4 http://trac.webkit.org/changeset/146033 5 https://bugs.webkit.org/show_bug.cgi?id=112521 6 7 web audio tests are broken 8 9 * Modules/webaudio/AudioNode.cpp: 10 (WebCore::AudioNode::AudioNode): 11 * Modules/webaudio/AudioNode.h: 12 * Modules/webaudio/AudioScheduledSourceNode.h: 13 * Modules/webaudio/ScriptProcessorNode.idl: 14 1 15 2013-03-18 Dominic Cooney <dominicc@chromium.org> 2 16 -
trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp
r146033 r146040 46 46 47 47 AudioNode::AudioNode(AudioContext* context, float sampleRate) 48 : ActiveDOMObject(context->scriptExecutionContext(), this) 49 , m_isInitialized(false) 48 : m_isInitialized(false) 50 49 , m_nodeType(NodeTypeUnknown) 51 50 , m_context(context) … … 77 76 } 78 77 79 bool AudioNode::hasPendingActivity() const80 {81 return !m_isDisabled && (m_connectionRefCount > 0);82 }83 84 78 void AudioNode::initialize() 85 79 { -
trunk/Source/WebCore/Modules/webaudio/AudioNode.h
r146033 r146040 26 26 #define AudioNode_h 27 27 28 #include "ActiveDOMObject.h"29 28 #include "AudioBus.h" 30 29 #include <wtf/Forward.h> … … 51 50 // Most processing nodes such as filters will have one input and one output, although multiple inputs and outputs are possible. 52 51 53 class AudioNode : public ActiveDOMObject{52 class AudioNode { 54 53 public: 55 54 enum { ProcessingSizeInFrames = 128 }; … … 112 111 // Called from context's audio thread. 113 112 virtual void reset() = 0; 114 115 // ActiveDOMObject interface116 virtual bool hasPendingActivity() const OVERRIDE;117 113 118 114 // No significant resources should be allocated until initialize() is called. -
trunk/Source/WebCore/Modules/webaudio/AudioScheduledSourceNode.h
r146033 r146040 57 57 AudioScheduledSourceNode(AudioContext*, float sampleRate); 58 58 59 // unhide the ActiveDOMObject signature60 using AudioSourceNode::stop;61 62 59 // Scheduling. 63 60 void start(double when); -
trunk/Source/WebCore/Modules/webaudio/ScriptProcessorNode.idl
r146033 r146040 28 28 JSGenerateToJSObject, 29 29 JSGenerateToNativeObject, 30 ActiveDOMObject,31 30 EventTarget 32 31 ] interface ScriptProcessorNode : AudioNode {
Note: See TracChangeset
for help on using the changeset viewer.