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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 496 } |
497 | 497 |
498 OscillatorNode* BaseAudioContext::createOscillator( | 498 OscillatorNode* BaseAudioContext::createOscillator( |
499 ExceptionState& exceptionState) { | 499 ExceptionState& exceptionState) { |
500 DCHECK(isMainThread()); | 500 DCHECK(isMainThread()); |
501 | 501 |
502 return OscillatorNode::create(*this, exceptionState); | 502 return OscillatorNode::create(*this, exceptionState); |
503 } | 503 } |
504 | 504 |
505 PeriodicWave* BaseAudioContext::createPeriodicWave( | 505 PeriodicWave* BaseAudioContext::createPeriodicWave( |
506 DOMFloat32Array* real, | 506 const MaybeShared<DOMFloat32Array>& real, |
507 DOMFloat32Array* imag, | 507 const MaybeShared<DOMFloat32Array>& imag, |
508 ExceptionState& exceptionState) { | 508 ExceptionState& exceptionState) { |
509 DCHECK(isMainThread()); | 509 DCHECK(isMainThread()); |
510 | 510 |
511 return PeriodicWave::create(*this, real, imag, false, exceptionState); | 511 return PeriodicWave::create(*this, real, imag, false, exceptionState); |
512 } | 512 } |
513 | 513 |
514 PeriodicWave* BaseAudioContext::createPeriodicWave( | 514 PeriodicWave* BaseAudioContext::createPeriodicWave( |
515 DOMFloat32Array* real, | 515 const MaybeShared<DOMFloat32Array>& real, |
516 DOMFloat32Array* imag, | 516 const MaybeShared<DOMFloat32Array>& imag, |
517 const PeriodicWaveConstraints& options, | 517 const PeriodicWaveConstraints& options, |
518 ExceptionState& exceptionState) { | 518 ExceptionState& exceptionState) { |
519 DCHECK(isMainThread()); | 519 DCHECK(isMainThread()); |
520 | 520 |
521 bool disable = options.hasDisableNormalization() | 521 bool disable = options.hasDisableNormalization() |
522 ? options.disableNormalization() | 522 ? options.disableNormalization() |
523 : false; | 523 : false; |
524 | 524 |
525 return PeriodicWave::create(*this, real, imag, disable, exceptionState); | 525 return PeriodicWave::create(*this, real, imag, disable, exceptionState); |
526 } | 526 } |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 } | 898 } |
899 | 899 |
900 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { | 900 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { |
901 if (getExecutionContext()) | 901 if (getExecutionContext()) |
902 return getExecutionContext()->getSecurityOrigin(); | 902 return getExecutionContext()->getSecurityOrigin(); |
903 | 903 |
904 return nullptr; | 904 return nullptr; |
905 } | 905 } |
906 | 906 |
907 } // namespace blink | 907 } // namespace blink |
OLD | NEW |