| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void DeferredTaskHandler::contextWillBeDestroyed() | 256 void DeferredTaskHandler::contextWillBeDestroyed() |
| 257 { | 257 { |
| 258 for (auto& handler : m_renderingOrphanHandlers) | 258 for (auto& handler : m_renderingOrphanHandlers) |
| 259 handler->clearContext(); | 259 handler->clearContext(); |
| 260 for (auto& handler : m_deletableOrphanHandlers) | 260 for (auto& handler : m_deletableOrphanHandlers) |
| 261 handler->clearContext(); | 261 handler->clearContext(); |
| 262 clearHandlersToBeDeleted(); | 262 clearHandlersToBeDeleted(); |
| 263 // Some handlers might live because of their cross thread tasks. | 263 // Some handlers might live because of their cross thread tasks. |
| 264 } | 264 } |
| 265 | 265 |
| 266 DeferredTaskHandler::AutoLocker::AutoLocker(AbstractAudioContext* context) | 266 DeferredTaskHandler::AutoLocker::AutoLocker(BaseAudioContext* context) |
| 267 : m_handler(context->deferredTaskHandler()) | 267 : m_handler(context->deferredTaskHandler()) |
| 268 { | 268 { |
| 269 m_handler.lock(); | 269 m_handler.lock(); |
| 270 } | 270 } |
| 271 | 271 |
| 272 DeferredTaskHandler::OfflineGraphAutoLocker::OfflineGraphAutoLocker(OfflineAudio
Context* context) | 272 DeferredTaskHandler::OfflineGraphAutoLocker::OfflineGraphAutoLocker(OfflineAudio
Context* context) |
| 273 : m_handler(context->deferredTaskHandler()) | 273 : m_handler(context->deferredTaskHandler()) |
| 274 { | 274 { |
| 275 m_handler.offlineLock(); | 275 m_handler.offlineLock(); |
| 276 } | 276 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 void DeferredTaskHandler::setAudioThreadToCurrentThread() | 311 void DeferredTaskHandler::setAudioThreadToCurrentThread() |
| 312 { | 312 { |
| 313 ASSERT(!isMainThread()); | 313 ASSERT(!isMainThread()); |
| 314 ThreadIdentifier thread = currentThread(); | 314 ThreadIdentifier thread = currentThread(); |
| 315 releaseStore(&m_audioThread, thread); | 315 releaseStore(&m_audioThread, thread); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace blink | 318 } // namespace blink |
| 319 | 319 |
| OLD | NEW |