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

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

Issue 1826733002: Remove ASSERT_WITH_MESSAGE family. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return m_contextGraphMutex.tryLock(); 52 return m_contextGraphMutex.tryLock();
53 } 53 }
54 54
55 void DeferredTaskHandler::unlock() 55 void DeferredTaskHandler::unlock()
56 { 56 {
57 m_contextGraphMutex.unlock(); 57 m_contextGraphMutex.unlock();
58 } 58 }
59 59
60 void DeferredTaskHandler::offlineLock() 60 void DeferredTaskHandler::offlineLock()
61 { 61 {
62 // RELEASE_ASSERT is here to make sure to explicitly crash if this is called 62 // CHECK is here to make sure to explicitly crash if this is called from
63 // from other than the offline render thread, which is considered as the 63 // other than the offline render thread, which is considered as the audio
64 // audio thread in OfflineAudioContext. 64 // thread in OfflineAudioContext.
65 RELEASE_ASSERT_WITH_MESSAGE(isAudioThread(), 65 CHECK(isAudioThread())
66 "DeferredTaskHandler::offlineLock() must be called within the offline au dio thread."); 66 << "DeferredTaskHandler::offlineLock() must be called within the offline audio thread.";
67 67
68 m_contextGraphMutex.lock(); 68 m_contextGraphMutex.lock();
69 } 69 }
70 70
71 #if ENABLE(ASSERT) 71 #if ENABLE(ASSERT)
72 bool DeferredTaskHandler::isGraphOwner() 72 bool DeferredTaskHandler::isGraphOwner()
73 { 73 {
74 return m_contextGraphMutex.locked(); 74 return m_contextGraphMutex.locked();
75 } 75 }
76 #endif 76 #endif
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698