| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 } | 516 } |
| 517 | 517 |
| 518 OscillatorNode* BaseAudioContext::createOscillator( | 518 OscillatorNode* BaseAudioContext::createOscillator( |
| 519 ExceptionState& exception_state) { | 519 ExceptionState& exception_state) { |
| 520 DCHECK(IsMainThread()); | 520 DCHECK(IsMainThread()); |
| 521 | 521 |
| 522 return OscillatorNode::Create(*this, exception_state); | 522 return OscillatorNode::Create(*this, exception_state); |
| 523 } | 523 } |
| 524 | 524 |
| 525 PeriodicWave* BaseAudioContext::createPeriodicWave( | 525 PeriodicWave* BaseAudioContext::createPeriodicWave( |
| 526 NotShared<DOMFloat32Array> real, | 526 DOMFloat32Array* real, |
| 527 NotShared<DOMFloat32Array> imag, | 527 DOMFloat32Array* imag, |
| 528 ExceptionState& exception_state) { | 528 ExceptionState& exception_state) { |
| 529 DCHECK(IsMainThread()); | 529 DCHECK(IsMainThread()); |
| 530 | 530 |
| 531 return PeriodicWave::Create(*this, real, imag, false, exception_state); | 531 return PeriodicWave::Create(*this, real, imag, false, exception_state); |
| 532 } | 532 } |
| 533 | 533 |
| 534 PeriodicWave* BaseAudioContext::createPeriodicWave( | 534 PeriodicWave* BaseAudioContext::createPeriodicWave( |
| 535 NotShared<DOMFloat32Array> real, | 535 DOMFloat32Array* real, |
| 536 NotShared<DOMFloat32Array> imag, | 536 DOMFloat32Array* imag, |
| 537 const PeriodicWaveConstraints& options, | 537 const PeriodicWaveConstraints& options, |
| 538 ExceptionState& exception_state) { | 538 ExceptionState& exception_state) { |
| 539 DCHECK(IsMainThread()); | 539 DCHECK(IsMainThread()); |
| 540 | 540 |
| 541 bool disable = options.hasDisableNormalization() | 541 bool disable = options.hasDisableNormalization() |
| 542 ? options.disableNormalization() | 542 ? options.disableNormalization() |
| 543 : false; | 543 : false; |
| 544 | 544 |
| 545 return PeriodicWave::Create(*this, real, imag, disable, exception_state); | 545 return PeriodicWave::Create(*this, real, imag, disable, exception_state); |
| 546 } | 546 } |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 } | 921 } |
| 922 | 922 |
| 923 SecurityOrigin* BaseAudioContext::GetSecurityOrigin() const { | 923 SecurityOrigin* BaseAudioContext::GetSecurityOrigin() const { |
| 924 if (GetExecutionContext()) | 924 if (GetExecutionContext()) |
| 925 return GetExecutionContext()->GetSecurityOrigin(); | 925 return GetExecutionContext()->GetSecurityOrigin(); |
| 926 | 926 |
| 927 return nullptr; | 927 return nullptr; |
| 928 } | 928 } |
| 929 | 929 |
| 930 } // namespace blink | 930 } // namespace blink |
| OLD | NEW |