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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 m_listener = AudioListener::create(*this); | 143 m_listener = AudioListener::create(*this); |
144 } | 144 } |
145 } | 145 } |
146 | 146 |
147 void AbstractAudioContext::clear() | 147 void AbstractAudioContext::clear() |
148 { | 148 { |
149 m_destinationNode.clear(); | 149 m_destinationNode.clear(); |
150 // The audio rendering thread is dead. Nobody will schedule AudioHandler | 150 // The audio rendering thread is dead. Nobody will schedule AudioHandler |
151 // deletion. Let's do it ourselves. | 151 // deletion. Let's do it ourselves. |
152 deferredTaskHandler().clearHandlersToBeDeleted(); | 152 deferredTaskHandler().clearHandlersToBeDeleted(); |
| 153 deferredTaskHandler().clearAudioThread(); |
153 m_isCleared = true; | 154 m_isCleared = true; |
154 } | 155 } |
155 | 156 |
156 void AbstractAudioContext::uninitialize() | 157 void AbstractAudioContext::uninitialize() |
157 { | 158 { |
158 ASSERT(isMainThread()); | 159 ASSERT(isMainThread()); |
159 | 160 |
160 if (!isDestinationInitialized()) | 161 if (!isDestinationInitialized()) |
161 return; | 162 return; |
162 | 163 |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 | 982 |
982 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const | 983 SecurityOrigin* AbstractAudioContext::getSecurityOrigin() const |
983 { | 984 { |
984 if (getExecutionContext()) | 985 if (getExecutionContext()) |
985 return getExecutionContext()->getSecurityOrigin(); | 986 return getExecutionContext()->getSecurityOrigin(); |
986 | 987 |
987 return nullptr; | 988 return nullptr; |
988 } | 989 } |
989 | 990 |
990 } // namespace blink | 991 } // namespace blink |
OLD | NEW |