Chromium Code Reviews| Index: third_party/WebKit/public/platform/WebAudioSourceProvider.h |
| diff --git a/third_party/WebKit/public/platform/WebAudioSourceProvider.h b/third_party/WebKit/public/platform/WebAudioSourceProvider.h |
| index 115dd96ef37a64fb9b8d8c2b2914cf36617338b8..22b22aafc1f37dc3aae774615bc950bc1efbf959 100644 |
| --- a/third_party/WebKit/public/platform/WebAudioSourceProvider.h |
| +++ b/third_party/WebKit/public/platform/WebAudioSourceProvider.h |
| @@ -37,11 +37,13 @@ class WebAudioSourceProvider { |
| virtual ~WebAudioSourceProvider() {} |
| // provideInput() gets called repeatedly to render time-slices of a continuous |
| - // audio stream. |
| + // audio stream. May be called from any thread. |
| virtual void provideInput(const WebVector<float*>& audioData, |
| size_t numberOfFrames) = 0; |
| // If a client is set, we call it back when the audio format is available. |
| + // Must always be called from the same thread. I.e., Once called on a thread, |
|
foolip
2016/11/29 20:09:44
s/Once/once/
DaleCurtis
2016/11/29 20:17:49
Done.
|
| + // all future calls to setClient must be issued from that same thread. |
| virtual void setClient(WebAudioSourceProviderClient*) {} |
| }; |