Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: Source/modules/webaudio/AudioBasicInspectorNode.cpp

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Intel Corporation. All rights reserved. 2 * Copyright (C) 2012, Intel Corporation. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // We override pullInputs() as an optimization allowing this node to take advant age of in-place processing, 45 // We override pullInputs() as an optimization allowing this node to take advant age of in-place processing,
46 // where the input is simply passed through unprocessed to the output. 46 // where the input is simply passed through unprocessed to the output.
47 // Note: this only applies if the input and output channel counts match. 47 // Note: this only applies if the input and output channel counts match.
48 void AudioBasicInspectorNode::pullInputs(size_t framesToProcess) 48 void AudioBasicInspectorNode::pullInputs(size_t framesToProcess)
49 { 49 {
50 // Render input stream - try to render directly into output bus for pass-thr ough processing where process() doesn't need to do anything... 50 // Render input stream - try to render directly into output bus for pass-thr ough processing where process() doesn't need to do anything...
51 input(0)->pull(output(0)->bus(), framesToProcess); 51 input(0)->pull(output(0)->bus(), framesToProcess);
52 } 52 }
53 53
54 void AudioBasicInspectorNode::connect(AudioNode* destination, unsigned outputInd ex, unsigned inputIndex, ExceptionState& es) 54 void AudioBasicInspectorNode::connect(AudioNode* destination, unsigned outputInd ex, unsigned inputIndex, ExceptionCode& ec)
55 { 55 {
56 ASSERT(isMainThread()); 56 ASSERT(isMainThread());
57 57
58 AudioContext::AutoLocker locker(context()); 58 AudioContext::AutoLocker locker(context());
59 59
60 AudioNode::connect(destination, outputIndex, inputIndex, es); 60 AudioNode::connect(destination, outputIndex, inputIndex, ec);
61 updatePullStatus(); 61 updatePullStatus();
62 } 62 }
63 63
64 void AudioBasicInspectorNode::disconnect(unsigned outputIndex, ExceptionState& e s) 64 void AudioBasicInspectorNode::disconnect(unsigned outputIndex, ExceptionCode& ec )
65 { 65 {
66 ASSERT(isMainThread()); 66 ASSERT(isMainThread());
67 67
68 AudioContext::AutoLocker locker(context()); 68 AudioContext::AutoLocker locker(context());
69 69
70 AudioNode::disconnect(outputIndex, es); 70 AudioNode::disconnect(outputIndex, ec);
71 updatePullStatus(); 71 updatePullStatus();
72 } 72 }
73 73
74 void AudioBasicInspectorNode::checkNumberOfChannelsForInput(AudioNodeInput* inpu t) 74 void AudioBasicInspectorNode::checkNumberOfChannelsForInput(AudioNodeInput* inpu t)
75 { 75 {
76 ASSERT(context()->isAudioThread() && context()->isGraphOwner()); 76 ASSERT(context()->isAudioThread() && context()->isGraphOwner());
77 77
78 ASSERT(input == this->input(0)); 78 ASSERT(input == this->input(0));
79 if (input != this->input(0)) 79 if (input != this->input(0))
80 return; 80 return;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // The AudioBasicInspectorNode is connected to nothing, remove it fr om the context's automatic pull list. 113 // The AudioBasicInspectorNode is connected to nothing, remove it fr om the context's automatic pull list.
114 context()->removeAutomaticPullNode(this); 114 context()->removeAutomaticPullNode(this);
115 m_needAutomaticPull = false; 115 m_needAutomaticPull = false;
116 } 116 }
117 } 117 }
118 } 118 }
119 119
120 } // namespace WebCore 120 } // namespace WebCore
121 121
122 #endif // ENABLE(WEB_AUDIO) 122 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioBasicInspectorNode.h ('k') | Source/modules/webaudio/AudioBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698