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

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

Issue 2017923002: Unbreak release component builds on Windows after https://codereview.chromium.org/2014343002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hmm2 Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698