| 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 188 |
| 189 void DeferredTaskHandler::removeChangedChannelCountMode(AudioHandler* node) | 189 void DeferredTaskHandler::removeChangedChannelCountMode(AudioHandler* node) |
| 190 { | 190 { |
| 191 ASSERT(isGraphOwner()); | 191 ASSERT(isGraphOwner()); |
| 192 | 192 |
| 193 m_deferredCountModeChange.remove(node); | 193 m_deferredCountModeChange.remove(node); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void DeferredTaskHandler::addChangedChannelInterpretation(AudioHandler* node) | 196 void DeferredTaskHandler::addChangedChannelInterpretation(AudioHandler* node) |
| 197 { | 197 { |
| 198 DCHECK(isGraphOwner()); | 198 ASSERT(isGraphOwner()); |
| 199 DCHECK(isMainThread()); | 199 ASSERT(isMainThread()); |
| 200 m_deferredChannelInterpretationChange.add(node); | 200 m_deferredChannelInterpretationChange.add(node); |
| 201 } | 201 } |
| 202 | 202 |
| 203 void DeferredTaskHandler::removeChangedChannelInterpretation(AudioHandler* node) | 203 void DeferredTaskHandler::removeChangedChannelInterpretation(AudioHandler* node) |
| 204 { | 204 { |
| 205 DCHECK(isGraphOwner()); | 205 ASSERT(isGraphOwner()); |
| 206 | 206 |
| 207 m_deferredChannelInterpretationChange.remove(node); | 207 m_deferredChannelInterpretationChange.remove(node); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void DeferredTaskHandler::updateChangedChannelCountMode() | 210 void DeferredTaskHandler::updateChangedChannelCountMode() |
| 211 { | 211 { |
| 212 ASSERT(isGraphOwner()); | 212 ASSERT(isGraphOwner()); |
| 213 | 213 |
| 214 for (AudioHandler* node : m_deferredCountModeChange) | 214 for (AudioHandler* node : m_deferredCountModeChange) |
| 215 node->updateChannelCountMode(); | 215 node->updateChannelCountMode(); |
| 216 m_deferredCountModeChange.clear(); | 216 m_deferredCountModeChange.clear(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void DeferredTaskHandler::updateChangedChannelInterpretation() | 219 void DeferredTaskHandler::updateChangedChannelInterpretation() |
| 220 { | 220 { |
| 221 DCHECK(isGraphOwner()); | 221 ASSERT(isGraphOwner()); |
| 222 | 222 |
| 223 for (AudioHandler* node : m_deferredChannelInterpretationChange) | 223 for (AudioHandler* node : m_deferredChannelInterpretationChange) |
| 224 node->updateChannelInterpretation(); | 224 node->updateChannelInterpretation(); |
| 225 m_deferredChannelInterpretationChange.clear(); | 225 m_deferredChannelInterpretationChange.clear(); |
| 226 } | 226 } |
| 227 | 227 |
| 228 DeferredTaskHandler::DeferredTaskHandler() | 228 DeferredTaskHandler::DeferredTaskHandler() |
| 229 : m_automaticPullNodesNeedUpdating(false) | 229 : m_automaticPullNodesNeedUpdating(false) |
| 230 , m_audioThread(0) | 230 , m_audioThread(0) |
| 231 { | 231 { |
| (...skipping 78 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 |