| 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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 | 795 |
| 796 m_activeSourceNodes.clear(); | 796 m_activeSourceNodes.clear(); |
| 797 } | 797 } |
| 798 | 798 |
| 799 void AbstractAudioContext::handleStoppableSourceNodes() | 799 void AbstractAudioContext::handleStoppableSourceNodes() |
| 800 { | 800 { |
| 801 ASSERT(isGraphOwner()); | 801 ASSERT(isGraphOwner()); |
| 802 | 802 |
| 803 // Find AudioBufferSourceNodes to see if we can stop playing them. | 803 // Find AudioBufferSourceNodes to see if we can stop playing them. |
| 804 for (AudioNode* node : m_activeSourceNodes) { | 804 for (AudioNode* node : m_activeSourceNodes) { |
| 805 if (node->handler().nodeType() == AudioHandler::NodeTypeAudioBufferSourc
e) { | 805 if (node->handler().getNodeType() == AudioHandler::NodeTypeAudioBufferSo
urce) { |
| 806 AudioBufferSourceNode* sourceNode = static_cast<AudioBufferSourceNod
e*>(node); | 806 AudioBufferSourceNode* sourceNode = static_cast<AudioBufferSourceNod
e*>(node); |
| 807 sourceNode->audioBufferSourceHandler().handleStoppableSourceNode(); | 807 sourceNode->audioBufferSourceHandler().handleStoppableSourceNode(); |
| 808 } | 808 } |
| 809 } | 809 } |
| 810 } | 810 } |
| 811 | 811 |
| 812 void AbstractAudioContext::handlePreRenderTasks() | 812 void AbstractAudioContext::handlePreRenderTasks() |
| 813 { | 813 { |
| 814 ASSERT(isAudioThread()); | 814 ASSERT(isAudioThread()); |
| 815 | 815 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 SecurityOrigin* AbstractAudioContext::securityOrigin() const | 947 SecurityOrigin* AbstractAudioContext::securityOrigin() const |
| 948 { | 948 { |
| 949 if (executionContext()) | 949 if (executionContext()) |
| 950 return executionContext()->securityOrigin(); | 950 return executionContext()->securityOrigin(); |
| 951 | 951 |
| 952 return nullptr; | 952 return nullptr; |
| 953 } | 953 } |
| 954 | 954 |
| 955 } // namespace blink | 955 } // namespace blink |
| 956 | 956 |
| OLD | NEW |