| 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 18 matching lines...) Expand all Loading... |
| 29 #include "platform/heap/Handle.h" | 29 #include "platform/heap/Handle.h" |
| 30 #include "wtf/HashSet.h" | 30 #include "wtf/HashSet.h" |
| 31 #include "wtf/PassRefPtr.h" | 31 #include "wtf/PassRefPtr.h" |
| 32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
| 33 #include "wtf/ThreadSafeRefCounted.h" | 33 #include "wtf/ThreadSafeRefCounted.h" |
| 34 #include "wtf/Threading.h" | 34 #include "wtf/Threading.h" |
| 35 #include "wtf/ThreadingPrimitives.h" | 35 #include "wtf/ThreadingPrimitives.h" |
| 36 #include "wtf/Vector.h" | 36 #include "wtf/Vector.h" |
| 37 #include "wtf/build_config.h" | 37 #include "wtf/build_config.h" |
| 38 | 38 |
| 39 #if ENABLE(WEB_AUDIO) | |
| 40 | |
| 41 namespace blink { | 39 namespace blink { |
| 42 | 40 |
| 43 class AbstractAudioContext; | 41 class AbstractAudioContext; |
| 44 class OfflineAudioContext; | 42 class OfflineAudioContext; |
| 45 class AudioHandler; | 43 class AudioHandler; |
| 46 class AudioNodeOutput; | 44 class AudioNodeOutput; |
| 47 class AudioSummingJunction; | 45 class AudioSummingJunction; |
| 48 | 46 |
| 49 // DeferredTaskHandler manages the major part of pre- and post- rendering tasks, | 47 // DeferredTaskHandler manages the major part of pre- and post- rendering tasks, |
| 50 // and provides a lock mechanism against the audio rendering graph. A | 48 // and provides a lock mechanism against the audio rendering graph. A |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 Vector<RefPtr<AudioHandler>> m_renderingOrphanHandlers; | 186 Vector<RefPtr<AudioHandler>> m_renderingOrphanHandlers; |
| 189 Vector<RefPtr<AudioHandler>> m_deletableOrphanHandlers; | 187 Vector<RefPtr<AudioHandler>> m_deletableOrphanHandlers; |
| 190 | 188 |
| 191 // Graph locking. | 189 // Graph locking. |
| 192 RecursiveMutex m_contextGraphMutex; | 190 RecursiveMutex m_contextGraphMutex; |
| 193 volatile ThreadIdentifier m_audioThread; | 191 volatile ThreadIdentifier m_audioThread; |
| 194 }; | 192 }; |
| 195 | 193 |
| 196 } // namespace blink | 194 } // namespace blink |
| 197 | 195 |
| 198 #endif // ENABLE(WEB_AUDIO) | |
| 199 | |
| 200 #endif // DeferredTaskHandler_h | 196 #endif // DeferredTaskHandler_h |
| OLD | NEW |