| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 void DeferredTaskHandler::contextWillBeDestroyed() | 227 void DeferredTaskHandler::contextWillBeDestroyed() |
| 228 { | 228 { |
| 229 for (auto& handler : m_renderingOrphanHandlers) | 229 for (auto& handler : m_renderingOrphanHandlers) |
| 230 handler->clearContext(); | 230 handler->clearContext(); |
| 231 for (auto& handler : m_deletableOrphanHandlers) | 231 for (auto& handler : m_deletableOrphanHandlers) |
| 232 handler->clearContext(); | 232 handler->clearContext(); |
| 233 clearHandlersToBeDeleted(); | 233 clearHandlersToBeDeleted(); |
| 234 // Some handlers might live because of their cross thread tasks. | 234 // Some handlers might live because of their cross thread tasks. |
| 235 } | 235 } |
| 236 | 236 |
| 237 DeferredTaskHandler::AutoLocker::AutoLocker(AbstractAudioContext* context) | 237 DeferredTaskHandler::AutoLocker::AutoLocker(BaseAudioContext* context) |
| 238 : m_handler(context->deferredTaskHandler()) | 238 : m_handler(context->deferredTaskHandler()) |
| 239 { | 239 { |
| 240 m_handler.lock(); | 240 m_handler.lock(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 DeferredTaskHandler::OfflineGraphAutoLocker::OfflineGraphAutoLocker(OfflineAudio
Context* context) | 243 DeferredTaskHandler::OfflineGraphAutoLocker::OfflineGraphAutoLocker(OfflineAudio
Context* context) |
| 244 : m_handler(context->deferredTaskHandler()) | 244 : m_handler(context->deferredTaskHandler()) |
| 245 { | 245 { |
| 246 m_handler.offlineLock(); | 246 m_handler.offlineLock(); |
| 247 } | 247 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 274 void DeferredTaskHandler::clearHandlersToBeDeleted() | 274 void DeferredTaskHandler::clearHandlersToBeDeleted() |
| 275 { | 275 { |
| 276 ASSERT(isMainThread()); | 276 ASSERT(isMainThread()); |
| 277 AutoLocker locker(*this); | 277 AutoLocker locker(*this); |
| 278 m_renderingOrphanHandlers.clear(); | 278 m_renderingOrphanHandlers.clear(); |
| 279 m_deletableOrphanHandlers.clear(); | 279 m_deletableOrphanHandlers.clear(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace blink | 282 } // namespace blink |
| 283 | 283 |
| OLD | NEW |