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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.h

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 | « no previous file | third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h » ('j') | 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 DeferredTaskHandler& deferredTaskHandler() const { return *m_deferredTaskHan dler; } 225 DeferredTaskHandler& deferredTaskHandler() const { return *m_deferredTaskHan dler; }
226 // 226 //
227 // Thread Safety and Graph Locking: 227 // Thread Safety and Graph Locking:
228 // 228 //
229 // The following functions call corresponding functions of 229 // The following functions call corresponding functions of
230 // DeferredTaskHandler. 230 // DeferredTaskHandler.
231 bool isAudioThread() const { return deferredTaskHandler().isAudioThread(); } 231 bool isAudioThread() const { return deferredTaskHandler().isAudioThread(); }
232 void lock() { deferredTaskHandler().lock(); } 232 void lock() { deferredTaskHandler().lock(); }
233 bool tryLock() { return deferredTaskHandler().tryLock(); } 233 bool tryLock() { return deferredTaskHandler().tryLock(); }
234 void unlock() { deferredTaskHandler().unlock(); } 234 void unlock() { deferredTaskHandler().unlock(); }
235 #if ENABLE(ASSERT)
235 // Returns true if this thread owns the context's lock. 236 // Returns true if this thread owns the context's lock.
236 bool isGraphOwner() { return deferredTaskHandler().isGraphOwner(); } 237 bool isGraphOwner() { return deferredTaskHandler().isGraphOwner(); }
238 #endif
237 using AutoLocker = DeferredTaskHandler::AutoLocker; 239 using AutoLocker = DeferredTaskHandler::AutoLocker;
238 240
239 // Returns the maximum numuber of channels we can support. 241 // Returns the maximum numuber of channels we can support.
240 static unsigned maxNumberOfChannels() { return MaxNumberOfChannels;} 242 static unsigned maxNumberOfChannels() { return MaxNumberOfChannels;}
241 243
242 // EventTarget 244 // EventTarget
243 const AtomicString& interfaceName() const final; 245 const AtomicString& interfaceName() const final;
244 ExecutionContext* getExecutionContext() const final; 246 ExecutionContext* getExecutionContext() const final;
245 247
246 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); 248 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 Member<PeriodicWave> m_periodicWaveTriangle; 364 Member<PeriodicWave> m_periodicWaveTriangle;
363 365
364 // This is considering 32 is large enough for multiple channels audio. 366 // This is considering 32 is large enough for multiple channels audio.
365 // It is somewhat arbitrary and could be increased if necessary. 367 // It is somewhat arbitrary and could be increased if necessary.
366 enum { MaxNumberOfChannels = 32 }; 368 enum { MaxNumberOfChannels = 32 };
367 }; 369 };
368 370
369 } // namespace blink 371 } // namespace blink
370 372
371 #endif // AbstractAudioContext_h 373 #endif // AbstractAudioContext_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698