OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. 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 20 matching lines...) Expand all Loading... |
31 #include "core/dom/CrossThreadTask.h" | 31 #include "core/dom/CrossThreadTask.h" |
32 #include "core/dom/ExecutionContext.h" | 32 #include "core/dom/ExecutionContext.h" |
33 #include "modules/webaudio/AudioBuffer.h" | 33 #include "modules/webaudio/AudioBuffer.h" |
34 #include "modules/webaudio/AudioContext.h" | 34 #include "modules/webaudio/AudioContext.h" |
35 #include "modules/webaudio/AudioNodeInput.h" | 35 #include "modules/webaudio/AudioNodeInput.h" |
36 #include "modules/webaudio/AudioNodeOutput.h" | 36 #include "modules/webaudio/AudioNodeOutput.h" |
37 #include "modules/webaudio/AudioProcessingEvent.h" | 37 #include "modules/webaudio/AudioProcessingEvent.h" |
38 #include "public/platform/Platform.h" | 38 #include "public/platform/Platform.h" |
39 #include "wtf/Float32Array.h" | 39 #include "wtf/Float32Array.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 #if !ENABLE(OILPAN) | 43 #if !ENABLE(OILPAN) |
44 // We need a dedicated specialization for ScriptProcessorNode because it doesn't | 44 // We need a dedicated specialization for ScriptProcessorNode because it doesn't |
45 // inherit from RefCounted. | 45 // inherit from RefCounted. |
46 template<> struct CrossThreadCopierBase<false, false, false, PassRefPtr<ScriptPr
ocessorNode> > : public CrossThreadCopierPassThrough<PassRefPtr<ScriptProcessorN
ode> > { | 46 template<> struct CrossThreadCopierBase<false, false, false, PassRefPtr<ScriptPr
ocessorNode> > : public CrossThreadCopierPassThrough<PassRefPtr<ScriptProcessorN
ode> > { |
47 }; | 47 }; |
48 #endif | 48 #endif |
49 | 49 |
50 static size_t chooseBufferSize() | 50 static size_t chooseBufferSize() |
51 { | 51 { |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 return std::numeric_limits<double>::infinity(); | 275 return std::numeric_limits<double>::infinity(); |
276 } | 276 } |
277 | 277 |
278 void ScriptProcessorNode::trace(Visitor* visitor) | 278 void ScriptProcessorNode::trace(Visitor* visitor) |
279 { | 279 { |
280 visitor->trace(m_inputBuffers); | 280 visitor->trace(m_inputBuffers); |
281 visitor->trace(m_outputBuffers); | 281 visitor->trace(m_outputBuffers); |
282 AudioNode::trace(visitor); | 282 AudioNode::trace(visitor); |
283 } | 283 } |
284 | 284 |
285 } // namespace WebCore | 285 } // namespace blink |
286 | 286 |
287 #endif // ENABLE(WEB_AUDIO) | 287 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |