Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.cpp

Issue 2103043007: Rename AbstractAudioContext to BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ASSERT(isGraphOwner()) instead of DCHECK Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698