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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 // Reject any pending resolvers before we go away. | 182 // Reject any pending resolvers before we go away. |
183 rejectPendingResolvers(); | 183 rejectPendingResolvers(); |
184 didClose(); | 184 didClose(); |
185 | 185 |
186 DCHECK(m_listener); | 186 DCHECK(m_listener); |
187 m_listener->waitForHRTFDatabaseLoaderThreadCompletion(); | 187 m_listener->waitForHRTFDatabaseLoaderThreadCompletion(); |
188 | 188 |
189 clear(); | 189 clear(); |
190 } | 190 } |
191 | 191 |
192 void BaseAudioContext::stop() { | 192 void BaseAudioContext::contextDestroyed() { |
193 uninitialize(); | 193 uninitialize(); |
194 } | 194 } |
195 | 195 |
196 bool BaseAudioContext::hasPendingActivity() const { | 196 bool BaseAudioContext::hasPendingActivity() const { |
197 // There's no pending activity if the audio context has been cleared. | 197 // There's no pending activity if the audio context has been cleared. |
198 return !m_isCleared; | 198 return !m_isCleared; |
199 } | 199 } |
200 | 200 |
201 AudioDestinationNode* BaseAudioContext::destination() const { | 201 AudioDestinationNode* BaseAudioContext::destination() const { |
202 // Cannot be called from the audio thread because this method touches objects
managed by Oilpan, | 202 // Cannot be called from the audio thread because this method touches objects
managed by Oilpan, |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
834 } | 834 } |
835 | 835 |
836 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { | 836 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { |
837 if (getExecutionContext()) | 837 if (getExecutionContext()) |
838 return getExecutionContext()->getSecurityOrigin(); | 838 return getExecutionContext()->getSecurityOrigin(); |
839 | 839 |
840 return nullptr; | 840 return nullptr; |
841 } | 841 } |
842 | 842 |
843 } // namespace blink | 843 } // namespace blink |
OLD | NEW |