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

Side by Side Diff: Source/modules/webaudio/MediaStreamAudioSourceNode.cpp

Issue 294053006: Oilpan: Use transition types for HTMLMediaElement and make AudioSourceProviderClient a GC mixin. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed build fix Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // a format change, so we output silence in this case. 106 // a format change, so we output silence in this case.
107 MutexTryLocker tryLocker(m_processLock); 107 MutexTryLocker tryLocker(m_processLock);
108 if (tryLocker.locked()) 108 if (tryLocker.locked())
109 audioSourceProvider()->provideInput(outputBus, numberOfFrames); 109 audioSourceProvider()->provideInput(outputBus, numberOfFrames);
110 else { 110 else {
111 // We failed to acquire the lock. 111 // We failed to acquire the lock.
112 outputBus->zero(); 112 outputBus->zero();
113 } 113 }
114 } 114 }
115 115
116 void MediaStreamAudioSourceNode::trace(Visitor* visitor)
117 {
118 visitor->trace(m_mediaStream);
119 visitor->trace(m_audioTrack);
120 AudioSourceNode::trace(visitor);
121 AudioSourceProviderClient::trace(visitor);
122 }
123
116 } // namespace WebCore 124 } // namespace WebCore
117 125
118 #endif // ENABLE(WEB_AUDIO) 126 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/MediaStreamAudioSourceNode.h ('k') | Source/platform/audio/AudioSourceProviderClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698