| 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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 } | 513 } |
| 514 | 514 |
| 515 OscillatorNode* BaseAudioContext::createOscillator( | 515 OscillatorNode* BaseAudioContext::createOscillator( |
| 516 ExceptionState& exceptionState) { | 516 ExceptionState& exceptionState) { |
| 517 DCHECK(isMainThread()); | 517 DCHECK(isMainThread()); |
| 518 | 518 |
| 519 return OscillatorNode::create(*this, exceptionState); | 519 return OscillatorNode::create(*this, exceptionState); |
| 520 } | 520 } |
| 521 | 521 |
| 522 PeriodicWave* BaseAudioContext::createPeriodicWave( | 522 PeriodicWave* BaseAudioContext::createPeriodicWave( |
| 523 DOMFloat32Array* real, | 523 const NotShared<DOMFloat32Array>& real, |
| 524 DOMFloat32Array* imag, | 524 const NotShared<DOMFloat32Array>& imag, |
| 525 ExceptionState& exceptionState) { | 525 ExceptionState& exceptionState) { |
| 526 DCHECK(isMainThread()); | 526 DCHECK(isMainThread()); |
| 527 | 527 |
| 528 return PeriodicWave::create(*this, real, imag, false, exceptionState); | 528 return PeriodicWave::create(*this, real, imag, false, exceptionState); |
| 529 } | 529 } |
| 530 | 530 |
| 531 PeriodicWave* BaseAudioContext::createPeriodicWave( | 531 PeriodicWave* BaseAudioContext::createPeriodicWave( |
| 532 DOMFloat32Array* real, | 532 const NotShared<DOMFloat32Array>& real, |
| 533 DOMFloat32Array* imag, | 533 const NotShared<DOMFloat32Array>& imag, |
| 534 const PeriodicWaveConstraints& options, | 534 const PeriodicWaveConstraints& options, |
| 535 ExceptionState& exceptionState) { | 535 ExceptionState& exceptionState) { |
| 536 DCHECK(isMainThread()); | 536 DCHECK(isMainThread()); |
| 537 | 537 |
| 538 bool disable = options.hasDisableNormalization() | 538 bool disable = options.hasDisableNormalization() |
| 539 ? options.disableNormalization() | 539 ? options.disableNormalization() |
| 540 : false; | 540 : false; |
| 541 | 541 |
| 542 return PeriodicWave::create(*this, real, imag, disable, exceptionState); | 542 return PeriodicWave::create(*this, real, imag, disable, exceptionState); |
| 543 } | 543 } |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 } | 918 } |
| 919 | 919 |
| 920 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { | 920 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { |
| 921 if (getExecutionContext()) | 921 if (getExecutionContext()) |
| 922 return getExecutionContext()->getSecurityOrigin(); | 922 return getExecutionContext()->getSecurityOrigin(); |
| 923 | 923 |
| 924 return nullptr; | 924 return nullptr; |
| 925 } | 925 } |
| 926 | 926 |
| 927 } // namespace blink | 927 } // namespace blink |
| OLD | NEW |